Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying one array to another
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00089652
Message ID:
00089912
Vues:
29
>Hi:
>
>Thanks for responding. The redimensioning worked, but when I try to copy
>acopy(details, fileinfo)
>
>then display fileinfo I get the correct number of elements but the last number
>of elements that are to include the detail array elements are .f.
>
>I also tried acopy(details, fileinfo, 1, 3, 54)
>
>where 1 = 1st source element
> 3 = no. of elements
> 54 = element number to replace
>
>I still get .f. for the new elements contents.
>
>Am i doing something incorrect?
>
>Sheena E.

Try the following in a program to run in the VFP main screen...

CLEA

DIMENSION FILEINFO[2,1]
DIMENSION DETAILS[1,1]

FILEINFO[1,1]="FILE1"
FILEINFO[2,1]="FILE2"
DETAILS[1,1]="DETAILS1"


DISP MEMO LIKE DETAILS
DISP MEMO LIKE FILEINFO

DIMENSION DETAILS(3,1) && Redimension to add elements from FileInfo

=ACOPY(FILEINFO,DETAILS,1,2,2)

?
?
? "After ACOPY()"
?
DISP MEMO LIKE DETAILS
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform