ToString (Record function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with "{{Template:Record:ToString subtitle}} <var>ToString</var> returns information (file name, record number, lock strength) about the <var>Record</var> object to a longstring. ==S...")
 
mNo edit summary
Line 1: Line 1:
{{Template:Record:ToString subtitle}}
{{Template:Record:ToString subtitle}}
<var>ToString</var> returns information (file name, record number, lock strength) about the <var>Record</var> object to a longstring.   
<var>ToString</var> returns a longstring that has the file name, record number, and lock strength of the <var>Record</var> object.   


==Syntax==
==Syntax==

Revision as of 00:20, 27 April 2011

Information about Record (Record class)

ToString returns a longstring that has the file name, record number, and lock strength of the Record object.

Syntax

%string = record:ToString

Syntax terms

%string A longstring variable to receive the contents of the Record.
record A Record object variable.

Usage notes

  • ToString can be applied implicitly: simply Print (or Audit) an object variable, and the ToString method is automatically applied to the object. That is:

    print %rec

    is equivalent to:

    print %rec:ToString

Examples

The following record display is produced by a print %rec statement.

Filename=MYPROC, RecordNumber=212121, LockStrength=Share

See also