ReadField()

Syntax:

ReadField( Quote, Encrypt, Key )

Return:

All the text up to the first comma. If the text is not comma separated, then the full text is returned.

Parameters:

Quote – if the field to read is surrounded by quote marks (""). This is useful if your data can contain commas - for (a badly punctuated) example:

"This field, has a comma in it","Another field"

This parameter is optional and the default is true.

Encrypt – set the encryption on or off. Encrypt is either true or false. If Encrypt is true, the file is encrypted. If Encrypt is false, the file is not encrypted. This parameter is optional and the default is false.

Key – a string that is the encryption key. This parameter must be specified if the Encrypt parameter is true.

Remarks:

This function will read a comma-separated file that has been opened with an OpenFile function. Each time the function is called, the next field (i.e. text separated by commas) will be displayed.

image\Script_Button.jpgExamples