Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aappend?
Message
From
28/12/2001 16:52:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00598974
Message ID:
00598992
Views:
17
>>>Does anyone have a routine that would work for this. I have 2 arrays that have the same structure(?), I want to append the data from the first array to the bottom of the second array, without overwriting what is in the second one already? I think I must be missing something, because it sounded a lot easier to me then it is turning out to be. Thanks,
>>>jfh
>>
>>John,
>>
>>lnFirst = alen(arrFirst,1)
>>dimension arrFirst[lnFirst+alen(arrSecond,1),alen(arrFirst,2)]
>>acopy(arrSecond, arrFirst, 1, -1, lnFirst+1)
>>
>>Oh you would write to bottom of second. Adjust.
>>Cetin
>
>Thanks Cetin.
>jfh

John,
Opps :) It would be :

acopy(arrSecond, arrFirst, 1, -1, lnFirst * alen(arrFirst,2)+1)


Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform