Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What basis is used?
Message
De
25/12/1999 22:51:26
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
25/12/1999 22:08:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00308584
Message ID:
00308588
Vues:
19
>Hi,
> I would like to know what basis is used in VFP for form when form released. IOW, if there are 3 forms load in sequence - form1, form2 and form3, if try to release form as the following, which form will be activated?
>
>
>FormReleased       FormActivated?
>   Form1                ?
>   Form2                ?
>   Form3                ?
>
>How about some of them were minimized in that time?
>
>Thank you


John,
AFAIK forms are kept in a stack with their order of creation first time. Then stack changes as each one is activated. ie: if forms were activated :
form1
form2
form3
form4

forms(1)=form4
...
forms(4)=form1

Then if you click say form3, list become :
forms(1)=form3
forms(2)=form4
forms(3)=form2
forms(4)=form1

LastInFirstOut. But since it's hard to always how correctly this works you should test it yourself. Add a button to your forms with click.code :
_screen.print("Before release :"+chr(13))
for ix=1 to _screen.formcount
 _screen.print(_screen.forms(ix).name+chr(13))  && Though name doesn't differ them
* Temporarily have your forms with unique names  
endfor
thisform.release
Also put the same code in activate of forms (temporarily - best with test forms, change text as appropriate and ignore first time activation messages).
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
Répondre
Fil
Voir

Click here to load this message in the networking platform