Jump to content

Recommended Posts

Posted (edited)

These functions are much like the previous ones written by various people (such as blindwig's Binary Tree funcs) but these use only a single string to store information. These functions store information in INI format so you can store the table to a file then read it with INIRead and such. Using these, you can store information to a key then call the key and get the information. If you try to set a key that already exists, it will overwrite the old value with the new value. Very useful.

Functions:

_INITableCreate ( ) - Creates an INI Table.

_INITableSet ( ByRef $s_Table, $s_Key, $s_Value ) - Sets a key and it's value in the INI Table.

_INITableGet ( ByRef $s_Table, $s_Key ) - Gets the value of the specified key in the INI Table.

_INITableDel ( ByRef $s_Table, $s_Key ) - Deletes a key and it's value from the INI Table.

_INITableSave ( ByRef $s_Table, $s_INI ) - Writes an INI Table to a file.

_INITableLoad ( $s_INI ) - Loads an INI Table from a file.

_INITableExists ( ByRef $s_Table, $s_Key ) - Checks if a given key exists in the INI Table.

_INITableCheck ( ByRef $s_Table ) - Checks that an INI Table is in the proper format.

_INITableDisplay ( ByRef $s_Table, $s_Title = "INI Table" ) - Displays an INI Table.

Not much of anything else I can think of, I you want to check these out the UDF and example are attached. Questions/comments are greatly appreciated as I am always trying to improve my scripts! :)

EDIT: Sorry blindwig! The correct author is up there now.

Edited by erifash
  • 1 month later...
Posted

I can't believe I never saw this on the topic list! This is great! This is of enormous use to me. Thanks!

I only noticed it after I was about 80% done trying to do it myself... yours is MUCH cleaner than my code though, and now I don't have to do the documentation! :P

;)

My UDFs: ExitCodes

Posted

Oops, you probably should change your top post to give credit to the correct author of the Binary Tree functions! ;)

  • 2 weeks later...
Posted

Does anyone like this or think it is an innovative idea? Also, I have updated the functions with minor bug fixes.

Doing a little back tracking on the forum today.. I am doing catch up..:P

Nice set of tools. Keep up the good work..

Cheers.. ;)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...