Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN ..... ENDSCAN
Message
From
21/06/2001 03:01:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SCAN ..... ENDSCAN
Miscellaneous
Thread ID:
00521771
Message ID:
00521771
Views:
55
Hi all again,
I'm doing some computations on a records in a table using the SCAN ... ENDSCAN. I have a variable (var1) which stores the compound number (1, 2, 3,..) and var2 (1, 2, 3,..) which stores the house number. Var2 is incremented by one from the previous record if the compound is the same otherwise var2 starts from one again. I was wondering if there's a function in VFP6 that can lag values (something like the LAG() function in SAS!). Or how do I go about this? I want my code to "see" the previous value of compound (var1) and/or house (var2).

Thanks in advance guys.
Richard.
Next
Reply
Map
View

Click here to load this message in the networking platform