GetINIFileData()

Syntax:

GetINIFileData( FilePath, Section, Key )

Return:

The data contained within the key.

If the key does not exist the return string is empty.

Parameters:

FilePath – This is the pathname where the INI file is stored on your computer. This parameter is required and must be surrounded by quote marks. Alternatively, you can use a variable containing a pathname.

Section – Enter the name of the section within the INI file in which the key is located. This parameter is required and must be surrounded by quote marks.

Key – Enter the name of the key. The Return Value will be the data contained within this key. This parameter is required and must be surrounded by quote marks.

Remarks:

The GetINIFileData function is used to return the value of a particular key within a specified section of an INI file. This function is used to get specific information from INI files either you have created or are available on a users computer.

Note:
This function works when you publish as a standalone publication but not as a web or Flex publication.

image\Script_Button.jpgExamples

 

see also:ReadRegistryKey, GetINISectionData