Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How I can obtain the record number ? 1

Status
Not open for further replies.

lucho33

Programmer
Oct 17, 2002
2
AR
I'm reading sequentially a file (TPS), and I need obtain the record number of each record, to save it in other file.
Is it possible ? Thanks
 
sPos = POSITION(MyFile)
lRec = ( Val(sPos[1]) * (256 ^ 3) ) + ( Val(sPos[2]) * (256 ^ 2) ) + Val(sPos[3]) * 256 ) + Val(sPos[4])

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top