Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Jim Booth's What's the current work area?
Message
De
17/05/1999 13:58:49
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00219686
Message ID:
00219696
Vues:
21
>>My typical code looks like: if seek(lcMyVar, "MyTable", "MyTableIndex"), or, if eof("MyTable"), or, REPLACE MyTable.MyVar WITH ..., that is to say ... fully qualified so I don't care if some other routine has changed the select area or the controlling index. If I am rigorous about fully qualifying what I do, am I safe, or is there some case where this approach is not enough.
>>
>
>The main gotcha would be to do a REPLACE MyTable.SomeField with somevalue which will not work if you are in a different workarea with the pointer at eof(). BOF() does not fail the replace. You also get no error message if at eof().

If you use the REPLACE MyTable.SomeField WITH somevalue IN MyTable, you can avoid the EOF() problem for none current areas.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform