>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