Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird SEEK
Message
From
15/11/1999 05:50:56
 
 
To
11/11/1999 18:41:45
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00290345
Message ID:
00291167
Views:
25
>Hi John,
>
>>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
>
>How does:
>
>
llFound = Seek(This.cTerm, 'NewEnroll', This.cStuFKey)
work?

Hi, Mike.

Thanks for kicking in here.

The table NewEnroll is indexed on StuFKey + cTerm. So, SEEKing cTerm is going to return .F. The very nature of the error message has me puzzled (error #12: variable cTerm not found). cTerm should not be found during the SEEK statement; it is part of the index key. Add to that the fact that it works flawlessly after the initial attempt, and I am absolutely stumped.

Any thoughts or work-arounds??

TIA,
John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform