General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only