Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLACE FROM ARRAY Command
Message
De
02/12/1999 12:34:05
 
 
À
02/12/1999 12:30:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00297964
Message ID:
00297989
Vues:
39
Ops, sorry about the typo, should be:

The Help for REPLACE FROM ARRAY indicates that it starts from the first element in the array and traverses the array elements. The order would be as if you were using AELEMENT(), i.e. a(1,1), a(1,2) ... a(1,n), a(2,1), a(2,2)... a(2,n), etc.

Bill


>the Help for REPLACE FROM ARRAY indicates that it starts from the first element in the array and traverses the array elements. The order would be as if you were using AELEMENT(), i.e. a(1,1), a(1,2) ... a(1,n), a(2,1), a(2,1)...
>
>Bill
>
>>I have a record with a FIELD
>>savearray CHAR 36
>>
>>I have a 2-dimensional array that I want to save into the record FIELD
>>I can have to up 36 "Y"s stored in my array based upon conditions.
>>I set up the array in the Init of my Form.
>>PUBLIC myarray
>>DIMENSION myarray (6,6)
>>
>>I plug values into the array as follows:
>>myarray (1,1) = "Y"
>>myarray (2,4) = "Y"
>>myarray (5,6) = "Y"
>>and so on...
>>
>>But when I do the command -
>>REPLACE FROM ARRAY myarray FIELDS savearray
>>only the first Y gets saved into the record.
>>I think it is the myarray(1,1) that gets saved. The others don't appear in the saved record.
>>
>>Can't the REPLACE FROM ARRAY command handle 2-dimensional arrays? Or what am I doing wrong? Help please. Thanks.
>>
>>Steve Kramer
>>Kramer & Kramer Design
>>
>>p.s. - Happy Holidays!!!
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform