Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_Screen.Forms array
Message
From
21/10/1999 11:09:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
21/10/1999 10:48:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00279327
Message ID:
00279361
Views:
14
>What determines the order of the Forms Array? Example:
>
>1: Form1
>2: Form2
>3: Form3
>
>and if I open a new form, Form3 moves to the 4th element and the new form goes to the 3rd element.


Mike,
AFAIK they're enumerated by their activation order, LIFO style, last in first out.
do form form1
do form form2
do form form3
do form form4

forms(1) = form4
forms(2) = form3
forms(3) = form2
forms(4) = form1

Click on formN (or show-activate) and it becomes forms(1), others are pushed in stack till formN's old position is filled. That's if you call :
_screen.forms(3).show

forms(1) = form2
forms(2) = form4
forms(3) = form3
forms(3) = form1

Other than providing a way to know form visit order I don't know how could it be reliable (thanks all collections don't behave same :).
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform