Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Going to a RecNo() that is no longer valid
Message
 
To
03/09/2008 07:58:53
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344176
Message ID:
01344443
Views:
11
Hi Jay,

>I've never used LOCATE that way. Why not use GOTO? Is it the same?

LOCATE RECORD and GOTO are nearly identical. The difference between the two is that if you pass RECCOUNT()+1 to GOTO, you get an error message, but LOCATE RECORD accepts this value and moves the record pointer into EOF. In other words, LOCATE RECORD accepts everything that RECNO() returns. GOTO only accepts existing records making it necessary to check for EOF() separately.
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform