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?