Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class Property Arrays
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00002472
Message ID:
00002473
Vues:
34
>I am using an SQL-SELECT INTO ARRAY to populate a
>class property array defined as aAddress[1,1] in
>the class library. I want the array to size to the
>relevant no. of records (seems reasonable) by
>redimensioning the array to 'fit' the correct
>number of rows (I count them before the SELECT). I
>then use this in a cbo. This code is in the class'
>INIT.
>HOWEVER the array will not change shape, and stays
>at whatever I define it to be in the base class
>(eg [5,7]).
>I have tried putting the code in different methods
>in case the init is redimensioning the array to
>its parent default but cannot get it to work. Any
>thoughts?


Put your code in the combo's requery() method & call it from there. In most cases I call the code from the 'Gotfocus()' method so that in a network situation the combo will contain the latest data.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform