Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking to see if forms exist
Message
 
À
24/11/1998 11:27:29
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00160898
Message ID:
00161003
Vues:
29
One thing you might consider... create a form manager. That way, you will be able to find references to your forms a lot easier. Most frameworks have this functionality built in.

Wayne
Just my $.02
>Thanks for the help, it worked!! It's alot easier then searching for objects too.
>
>THanks again
>
>Jim
>
>>Jim,
>>
>>You can use the _SCREEN.FORMS() array to look through all of the open forms on the FoxPro desktop. Use something like:
>>
>>FOR i = 1 to _SCREEN.FORMCOUNT
>> IF _SCREEN.FORMS(i).Caption="FormTitle" OR _SCREEN.FORMS(i).Name = "FormName"
>> && Whatever you want to do here
>> ENDIF
>>ENDFOR
>>
>>One Caveat. Undocked toolbars show up in the FORMS() array so you may also want to check to see if the _SCREEN.FORMS(i).BaseClass = "Form"
>>
>>That's all folks!
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform