Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace a Forms Array with a Table ??
Message
De
05/05/2016 13:22:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01635886
Message ID:
01635890
Vues:
63
I don't think you'll get a speed increase for only 20 items. IMO, the slowness is most likely from how you access the array. A bigger question is why you're using your own array instead of _SCREEN.Forms?

>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
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform