Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try....catch problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01000557
Message ID:
01001038
Views:
26
I think that TRY...ENDTRY is overkill for this date validation. Take a look at Re: Avoid "Invalid date" message Thread #825981 Message #980192.

>I have this code in my menu
>Local oERR As Exception
>Try
>        DO Form XX
>Catch
>	Try
>		Do Form a_error With oERR
>	Catch
>		**
>	EndTry
>Finally
>    Release oERR
>Endtry
>In my form XX i have a textbox with Date value and when is inserted a date like 01/01/222 (is an error) my form a_error is opened and i can close it and return to my textbox where a male another error and confirm the same date. In this second case it seems that Try catch structure is not active and i have normal foxpro error message. With other errors i can quit my application but this is not an error where i have to quit. Whay can i do to run again my a_error form more than once ?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform