Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display message whenever variable changes
Message
From
23/11/2004 19:04:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/11/2004 18:55:33
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00964064
Message ID:
00964090
Views:
9
>Thanks for the example Hilmer.
>here i'm fighting to get it right :-)
>
>the command (assert type('x')) i can set it in command window right ? so everytime it changes i get messagebox.(anyway i m doing this develop mode only)
>Thanks

No, you evaluate a condition in a certain place of your code. For example:
x = (some calculation)
* If x is negative, something is wrong
ASSERT x >= 0
* Now, continue working
After the calculation for "x", the ASSERT command gets evaluated, like any other command. Therefore, ASSERT is not like a breakpoint on a variable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform