Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Array from a class
Message
 
À
27/11/2003 10:44:10
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00854029
Message ID:
00854033
Vues:
20
Eric
In your class, add a property for your array ( let's call it myArray ). The SQL should then populate this array.
Then you could do something like:
obj = CreateObject("Class1")
if ALen( obj.myArray ) > 0
   ? obj.myArray[1]
endif
HTH
Jaime

>Hi,
>I have a class named Class1 with a sql command inside who take some information from table1.dbf into an array. Here the SQL :
>
>Select info1,info2,info3 from table1 into array A1.
>
>It's possible to view the information of the Array out of the class????.
>If yes How can i do it??.
>
>obj = createobject("Class1")
>...
>*!* Display the array inside Class1
>
>if empty(array)
> *!* Do something
>else
> *!* Do something
>endif
>
>
>I dont want to use into table table1.dbf or cursor, it's very important to use Array.
Why do programs stop working correctly as soon as you leave the Fox?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform