Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replacement for USE/SELE table with IF...ELSE...ENDIF
Message
De
02/10/2007 13:10:10
 
 
À
02/10/2007 13:03:33
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01257862
Message ID:
01257983
Vues:
15
Well that was my first thought but I thought that if I stated that, some wiseacre would come back and say "according to Help - yadayada it doesn't matter as the USEd table auto becomes selected...", or whatever. So I kept Schtumm. But in my little experiment with the "one-liner" the USEd table DID become selected auto, by default.

>Yes, Sergey corrected that issue with this:
>
>
>IF !USED('Schedule')
>	USE Schedule IN 0
>ENDIF
>SELECT Schedule
>
>
>
>>Actually Terry, then you should not select it always, for in the original code you just posted the table is only selected if it is not opened beforehand <g>

>>
>>
>>>
>>>IF !USED('Schedule')
>>>	USE Schedule IN 0
>>>ELSE
>>>	SELECT Schedule
>>>ENDIF
>>>
>>>
>>>yes, I guess it does matter.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform