Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining the “next” form
Message
De
23/07/1998 13:48:36
 
 
À
23/07/1998 13:30:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00120580
Message ID:
00120605
Vues:
23
>>I’m trying to determine, programmatically, which form on a multi-form screen will have the focus when I remove the active form by pressing it's x close button.
>>
>>I tried the following, but the second print statement doesn’t work as there is no ListIndex property in this case.
>>
>>for i = 1 to _SCREEN.formcount
>> ? _SCREEN.forms(i).name
>> ? _SCREEN.forms(i).ListIndex
>>endfor
>>
>>Zorder doesn’t seem to be the answer either as it seems to give me only top, or not top as an answer.
>>
>>Bob
>If same as tabbing it would be .forms(currentix).tabindex+1.
>Cetin

Good idea, but its even easier than that. I've just found the answer (sometimes the easiest approach works). It seems that _screen.forms are already in the right order. All I had to do to solve my problem was to remove the ListIndex line and I got the right answer (from top (current) form to bottom. If there is a toolbar, then this takes over in the top position.

Bob
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform