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 18:24:47
 
 
À
17/05/1999 13:43:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00219686
Message ID:
00219829
Vues:
22
Just one caveat there Bob (which you may be aware of), if you
REPLACE MyTable.myfield with x
and the currently selected table (not MyTable) is EOF() then no error will occur *and* the replace won't happen. Use the ..
REPLACE myfield with x IN MyTable
syntax

>...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.
>
>Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform