Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
External array command
Message
From
16/02/2018 20:30:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Miscellaneous
Thread ID:
01658178
Message ID:
01658183
Views:
49
This message has been marked as a message which has helped to the initial question of the thread.
Yes -- should be:
DIMENSION gaArrayOne(2)      && Create an array
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
EXTERNAL ARRAY gaArrayTwo   && Name of the array used in the UDF
CLEAR
gaArrayTwo(1) = gaArrayTwo(1) + 2
gaArrayTwo(2) = gaArrayTwo(2) + 2
? gaArrayTwo(1)
? gaArrayTwo(2)
Previous
Reply
Map
View

Click here to load this message in the networking platform