Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display message whenever variable changes
Message
De
23/11/2004 19:04:22
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
00964064
Message ID:
00964090
Vues:
10
>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)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform