Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Foxpro arrays vs. Clipper arrays
Hello all,
I previously programmed in Clipper. We are now migrating to Foxpro.
In Clipper we could fill an array row in the following way:
============================================================
LOCAL laArray
laArray = ARRAY(2,4)
laArray[1] = {'A','B','C','D'}
? laArray[1,1] && Result = 'A'
? laArray[1,2] && Result = 'B'
? laArray[1,3] && Result = 'C'
? laArray[1,4] && Result = 'D'
============================================================
Is there any syntax to use the "laArray[1] = {'A','B','C','D'}" in Foxpro ??
An other problem is to create an empy array. I Clipper it works like this:
============================================================
LOCAL laArray
laArray = {}
? ALEN(laArray) && Result = 0
============================================================
How can I arrange this in Foxpro ? So fas as I can see the ALEN function always returns the value 1 or more, because i'm unable to create an emty array.
Clipper also has additional ARRAY functions like AADD() is there a library to add these functions to Foxpro ?
Thanks in advance,
Theo Pluym
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement