Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Try/Catch
Message
From
07/08/2007 11:55:47
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01246493
Message ID:
01246513
Views:
23
You know, I started writing it using m.Successful and then setting that to .F. if something bad happend. After the code was done I would check the value and do something based on that, but I thought it was too old-style and wanted to find something more contemporary. Guess I'll just end up doing it the way I've done it for 15 years. I just assumed there must be a better way now.


>If you're using an object property instead of the variable, you can give it an assign method.
>
>It would not help you to go out of the code block, though :( But at least gives you a way to process it.
>
>
>
>>Ok. Just for errors. So, how would I trap when a variable value changes then? There are a number of things happening in that block of code and I want to be able to say, "Hey, look! The value change, so let's jump down to this other standard block of code and handle it." If I use IF or CASE, I could end up with 20 different conditional blocks. Seems like there should be a way to just get out and handle it without all the extra code.
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform