Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird SEEK
Message
De
11/11/1999 17:51:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Weird SEEK
Divers
Thread ID:
00290345
Message ID:
00290345
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform