Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proj Manager Keeps complaining about an array
Message
From
28/05/2004 14:10:45
 
 
To
27/05/2004 17:43:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00907901
Message ID:
00908258
Views:
21
Hi Craig,

Yes, for some reason EXTERNAL ARRAY does not seem to work - if you read the help file notes, one of the two examples seems wrong as it puts the EXTERNAL ARRAY in the calling program, not the called program; here is their code:

DIMENSION gaArrayOne(2) && Create an array
EXTERNAL ARRAY gaArrayTwo && Name of the array used in the UDF
SET TALK OFF
STORE 10 TO gaArrayOne(1)
STORE 2 TO gaArrayOne(2)
= ADDTWO(@gaArrayOne) && Pass the array by reference to a UDF
FUNCTION ADDTWO
PARAMETER gaArrayTwo
CLEAR
gaArrayTwo(1) = gaArrayTwo(1) + 2
gaArrayTwo(2) = gaArrayTwo(2) + 2
? gaArrayTwo(1)
? gaArrayTwo(2)

Anyhow, easier to just do the fake-out program in my main calling program.

Albert


>>You just answered my question! I have a form that uses an array and I put External Array everywhere I could think of in the form. You solution fixed it. Thanks!
>>
>
>I've had mixed results using EXTERNAL ARRAY. That's why I use the method I describe.
Previous
Reply
Map
View

Click here to load this message in the networking platform