General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only