Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro arrays vs. Clipper arrays
Message
De
21/08/2001 06:31:09
Ing. T.R.M. Pluym
Pluym Elektronics Bv
Hulst, Pays-Bas
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Foxpro arrays vs. Clipper arrays
Divers
Thread ID:
00546619
Message ID:
00546619
Vues:
44
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
Fil
Voir

Click here to load this message in the networking platform