Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
_screen.activeform don´t work in load event
Message
De
19/05/1999 11:41:14
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00220463
Message ID:
00220477
Vues:
20
>Hello to all
>
>I put this code in the load event of a form:
>
>if _screen.formcount>1
>_screen.activeform.windowstate=1
>endif
>
>This is because I want to minimize any open form when I load another.
>VFP says that _screen.activeform isn´t an object but he evaluate _screen.formcount right.
>
>If anyone can tell me what is the mistake please do it.
>
>Thanks
>
>Pedro
Pedro,
That really needs an activeform. You could workaround as :
for each oForm in _screen.forms
 oForm.windowstate = 1
endfor
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform