Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New VFP feature I didn't know about. Did you?
Message
De
21/07/2000 11:05:46
 
 
À
20/07/2000 23:07:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00395202
Message ID:
00395443
Vues:
9
>Hey UT folks -
>Did you know that when you issue a SCAN/ENDSCAN VFP automatically flips a SELECT back to the correct file when hitting the ENDSCAN without you having to explicitly doing so?
>
>
>Please someone tell me this is new and not been around since VFP 3 or FoxPro 1.0. Yeesh!


I'm pretty sure this has been around since FP 2.6

CLOSE DATA
USE table2
SELE 0
USE table1
SCAN
? ALIAS()
SELECT table2
ENDSCAN


This little program printed 'TABLE1' for each record in the table.

OTOH - I got into the habit of re-selecting the table I'm scanning because it made the code a little easier to read and maintain (even if only in my mind) when I, or another maintenance programmer would come back to it later.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform