Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why VFP
Message
 
 
À
24/11/1999 10:30:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00294419
Message ID:
00295047
Vues:
27
>Hi,
> What is ASSERT function used for? I don't understand the desc. from HELP. Why should we test in a second instance of VFP? How to do so?
>
>Thank you

I use Assert for debugging purposes. The default for SET ASSERTS is OFF so ASSERT command is ignored. During development, SET ASSERTS ON so andy ASSERT commands are executed. Usually you place an ASSERT where you want to determin if a certain expression is true or false. If the expression evaluates to False, you get a message box telling you so. You then get the option of bringing up the debugger to start tracing the problem. When you distribute your app, you do not have to concern yourself with removing the ASSERT commands from your code because they are ignored. Just do NOT put SET ASSERTS ON in any of your code. I only SET ASSERTS ON from the command window.

I have launched a 2nd instance of VFP when I wanted to test some multi-user features with remote views. However, most examples I can think of, I can accomplish with running multiple instances of a form using a private DS.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform