Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for object in memory
Message
De
05/05/2001 17:27:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00503933
Message ID:
00503936
Vues:
17
>I know this will be an easy one for most you watching this board but I have to ask it. I want to be able to determine if the user has chosen to display a toolbar or not. I don't know the syntax and can't find an example right off in the documentation. So, how do I test for if the toolbar object (or any object for that matter) is loaded? My statement will be something like:
>
>if (otlbr exists)
> (do something)
>else
> (do something else)
>endif
>
>Thanks in advance,
>Justin

Hi Justin,

Use the following code to determine if a toolbar is displayed:
If WExist( "<I>Toolbar Caption</I>")
    && do something
Else
    && do something else
EndIf
HTH
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform