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 10:54:25
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
02/10/2007 10:34:44
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01257862
Message ID:
01257909
Views:
18
>>>>I know there is some way of putting this on one line using IIF (I think), but I just can't recall it right now. Thanks!
>>>>
>>>>
>>>>IF NOT USED('Schedule')
>>>>	USE Schedule IN 0
>>>>ENDIF
>>>SELECT Schedule
>>>>
>>
>>Ok, I thought there was a one-line way of doing it, but maybe not.
>
>Probably better than Torre's as it is not reopening a table when it is already opened:
>
>
USE (IIF(USED('Schedule'),"","Schedule")) IN 0
>
>
>Walter

That's the one I was looking for. Thanks!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform