Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding the OPEN TABLE dialog box
Message
From
08/12/1998 10:16:46
 
 
To
07/12/1998 14:33:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00164261
Message ID:
00165074
Views:
22
That's a great way to deal with the USE command. But there are several other commands that can pop up the open dialog box (like ZAP, LOCATE, PACK, ...).

Unfortunately, I have inherited code that is failing on one of those commands. I thought it would be nice if I could have VFP error out, and this would help me locate the offending code.

But, as Eric and Ed pointed out, there appears to be no way to trap this condition. I can track this particular case down, but I was just hoping there was some VFP trick I was missing.

>We have coded a routine, which accepts the table name / alias as its parameter, checks among other things to ensure it is 'in use'. summary of this check is:
>
>if .not. used( m.lcParameter )
>
>select 0
>use ( m.lcParameter ) ;
>alias ( m.lcParameter ) ;
>Shared && may omit 'Shared' for cursor / temporary / data entry files
>
>endif
>
>IMHO this is not much overhead, to avoid looking 'stupid'
Previous
Reply
Map
View

Click here to load this message in the networking platform