Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little array
Message
From
13/03/2002 20:41:44
 
 
To
13/03/2002 20:26:01
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00632501
Message ID:
00632513
Views:
8
Hi Ric,

>You are saying here laTest is [3], but I don't know how long it will be, so shouldn't I dimesion it
>and then redimension as needed to add new rows?? See, I know I am going to get something into
>laTest, but the way I have it.. the CallFunc() you have shown should be filling up an array and then returning the new, complete array back to laTest....

It all still should work fine. So the following is what you want to do (i hope :)
LOCAL ARRAY laTest[1]

CallFunc(@laTest)
FOR i = 1 TO 5 
	?laTest[i]
NEXT

FUNCTION CallFunc(laExtArray)
EXTERNAL ARRAY laExtArray
DIMENSION laExtArray[5]
FOR i = 1 TO 5 
	laExtArray[i] = i
NEXT
ENDFUNC
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry
Previous
Reply
Map
View

Click here to load this message in the networking platform