Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird SEEK
Message
From
11/11/1999 17:51:01
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Weird SEEK
Miscellaneous
Thread ID:
00290345
Message ID:
00290345
Views:
56
Actually, I have two unrelated questions:

1. How do I turn on line numbering when I am editing code? I can't find it anywhere, and I am tired of counting lines . . . .

2. I have a method in a class that calls another method in the same class to check for enrollment conflicts for a school registration routine. The called method has two simple lines of code that are giving me trouble:

cKey = THIS.cStuFKey + THIS.cTerm
SEEK cKey IN NewEnroll

I now want to check each student for enrollment conflicts. So the first method calls the 2nd one 370 times--once for each student. The very first time this code is called, I get an error #12 (variable cTerm does not exist) on the SEEK statement(!). If I ignore, it then works perfectly for the remaining 370 students. If I examine cKey just before SEEKing, it is properly formed the very first time. That is, it consists of a student's foreign key + the proper term.

Any ideas where to look would be deeply appreciated.

TIA,
John
Next
Reply
Map
View

Click here to load this message in the networking platform