ToString (RecordsetCursor function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:RecordsetCursor:ToString subtitle}}
{{Template:RecordsetCursor:ToString subtitle}}
<var>ToString</var> returns information (state, file name, record number, lock strength) about the <var>RecordSetCursor</var> object to a longstring.   
<var>ToString</var> returns a longstring that has the <var>RecordSetCursor</var> object's state, file name, record number, and lock strength.   


==Syntax==
==Syntax==
Line 14: Line 14:
==Usage notes==
==Usage notes==
<ul>
<ul>
<li><var>ToString</var> can be applied implicitly: simply Print (or Audit) an object variable, and the <var>ToString</var> method is automatically applied to the object.  That is:
<li><var>ToString</var> can be applied implicitly: simply <var>Print</var> (or <var>Audit</var>) an object variable, and the <var>ToString</var> method is automatically applied to the object.  That is:
<p class="code">print %recsetCursor</p> is equivalent to: <p class="code">print %recsetCursor:ToString</p>
<p class="code">print %recsetCursor</p> is equivalent to: <p class="code">print %recsetCursor:ToString</p>
</ul>
</ul>

Latest revision as of 00:17, 27 April 2011

Information about RecordSetCursor (RecordsetCursor class)

ToString returns a longstring that has the RecordSetCursor object's state, file name, record number, and lock strength.

Syntax

%string = recordsetCursor:ToString

Syntax terms

%string A longstring variable to receive the contents of the RecordsetCursor.
recordsetCursor A RecordsetCursor 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 %recsetCursor

    is equivalent to:

    print %recsetCursor:ToString

Examples

The following output is produced by a print %recsetCursor statement:

State=HasRecord, Filename=MYPROC, RecordNumber=311, LockStrength=Share

See also