BtrvStepNext

Prev Next Home Home Table Of Contents Index

BtrvStepNext (DataVar,Handle)

BtrvStepNext goes to the next physical record of the file and reads the record into DataVar. DataVar is a MarxMenu variable and the data read creates an array of the fields stored on disk. This is normally used to work through a file when the search field in not a key field.


Example:
var fields,temp,handle,vararray readasctextfile('data.txt',fields) handle=btrvopen('phone.mxb',fields) while btrvresult=0 btrvstepnext(vararray,handle) ;<- Step to next file record writeln vararray[1] " " vararray[2] endwhile btrvclose(handle)

Result Codes: 9 - End of File

See Also: BtrvStepFirst BtrvStepLast BtrvStepPrev

Category: Btrieve

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home