Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View Array from a class
Message
 
To
27/11/2003 10:44:10
Eric Gauthier
Transcontinental Interweb (Montreal)
Boucherville, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00854029
Message ID:
00854033
Views:
21
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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform