Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
External array command
Message
De
16/02/2018 20:30:00
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01658178
Message ID:
01658183
Vues:
50
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform