Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replacement for USE/SELE table with IF...ELSE...ENDIF
Message
From
02/10/2007 13:10:10
 
 
To
02/10/2007 13:03:33
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01257862
Message ID:
01257983
Views:
17
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform