Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use opens a dialog box?
Message
From
18/10/1998 03:27:05
 
 
To
17/10/1998 19:27:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00147859
Message ID:
00147916
Views:
32
>Anyone know why sometimes use + a nonexistent file generates an error, and sometimes instead opens a file selection box? I'd like to have it consistently generate an error that could be trapped? Thanks in advance.



You can simply Copy the ON ERROR example on VFP help!
Then, add further control on Error number.

e.g.
if ErrNum = 1884 && Duplicate Key
TableRevert(.f.)
endif



if you want to ensure the table is exist before use, change use coding:

if File("MayHere")
Use MayHere in 0 order tag myKey Alias IsHere
else
Use ? in 0 Alias IsHere && will give a fiel open dialog to open file...
endif
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform