Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display message whenever variable changes
Message
From
23/11/2004 18:44:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
23/11/2004 18:40:31
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
00964064
Message ID:
00964085
Views:
7
>Thanks Cetin
>I'll give it a try.

Note that the ASSERT command is not like the debugger, which interrupts when a variable changes in any place in code.

You would typically put ASSERT in a single place, or in a few places, in your program, to make sure that a certain condition is fulfilled. For instance, you expect "x" to be of type "N" (numerical):

ASSERT type("x") = "N"

If this is true, nothing happens, and your code continues executing. If it is false, you will get a message, and the program is suspended (IIRC).
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