Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little array
Message
De
13/03/2002 20:41:44
 
 
À
13/03/2002 20:26:01
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00632501
Message ID:
00632513
Vues:
10
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform