Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace a Forms Array with a Table ??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01635886
Message ID:
01635888
Views:
62
>Some FUN Stuff today !!!
>
>This was thrown out for analysis and I don't see an easy way to implement this......
>
>We use an ARRAY called gaSession ( up to 20 elements max ) to create and hold the forms created on the screen in our application.
>
>So, to use one of the forms we call gaSession( lnCnt ) to access it, given then lnCnt is from 1 to 20.
>
>To access a property, we call gaSession.(lnCnt).p_thisproperty to access it.
>
>Cool stuff, but it gets slow when we open up a BUNCH of forms that are in the array.
>
>We want to know if we can replace the array with a table. I started out by created a table gtSession with 20 rows and 15 fields to hold the values passed to the session manager to send over to the Array gaSession, but which now would be stored in gtSession.
>
>It dawned on me.... what am I doing? The row IS NOT an object, so .................... any different ideas or something that I am overlooking?
>
>Thanks for any input !
>Tommy

Normally you would use a form manager object that will use a collection of forms. Also _screen.forms already holds array of all opened forms.

In any case, I don't think this is the most slow part, most likely it's how you're accessing it. E.g. it doesn't really matter if you would hold open forms in the table or an array. You can show some of your code and we can see, what exactly may be the slow part.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform