Navigation:  Reference > Functions >

RecordNumber()

Print this Topic Previous pageReturn to chapter overviewNext page

 

RCN(1)

 

PURPOSE

This function returns the record number for the active record in a specified file.

 

PARTS

1 f/c/eRequired - The file_number/handle of the file to use.

 

RETURN TYPE - R

 

COMMENTS

If there is not an active record for the specified file, the function will return 0.  This function can be used for both TAS and non-TAS files.

 

NOTE:  In Btrieve files the number returned by this function is not the true record number, but the offset of the record within the file.

 

EXAMPLE

 

define recordnumber type R

 

recordnumber = rcn(myfile_hndl)

// RecordNumber will = the active record number.

 

See Also RCN Get/SET command

 

 

 


Page url: http://www.cassoftware.com/tas/manual/recordnumber().htm