DOWNLOAD
To view this script, click the button below. Your browser should show you the script in your browser window. Copy and paste that script into ToolBook.

View Now
 


FILE FUNCTION
: getIniSectionNames()

Add-on OpenScript Function - should work in any version of ToolBook

  Syntax

getIniSectionNames(<fileRef>)

  Parameters <fileRef>
A valid reference to an INI file, including path if necessary.

    Returns Returns a comma delimited list of the section names identified in the INI file. This list does not include the brackets that surround the names.

    Sample request getIniSectionNames("c:\desktop\asym.ini")

    Notes This function will fail to read an INI file larger than 64k in size.

This function also requires that the TB85R.SBK system book be in your bound system books list. Use the Bound System Books option in the File menu to add this book if it is not already present. Failing to add it will result in the function failing at Runtime.