Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why VFP
Message
De
24/11/1999 11:08:18
 
 
À
24/11/1999 10:30:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00294419
Message ID:
00295059
Vues:
26
>Hi,
> What is ASSERT function used for? I don't understand the desc. from HELP.

ASSERT checks the state of a logical expression while the app is under development, before the applicatrion blows as a result of an unexpected value that you tested for in the logical condition, and will trigger a messagebox with an option to fire up the debugger then and there when run under the Development version of VFP. When installed and running under the runtime environment, the ASSERT doesn't get triggered, so you can leave ASSERTs in the code for debugging purposes without exposing the user to the unanticipated message.

It's a good way to check that you're calling things with the reight data types for parameters, or check values of parameters and then be able to get to the debugger if things don't work as expected.

>Why should we test in a second instance of VFP?

Checking to see if two app instances will survive, and to provide some limited multi-user/conflict resolution testing are a couple of reasons.

> How to do so?

Start VFP more than one time and run the same program.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform