Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Dimension to resize an array
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01085313
Message ID:
01085354
Views:
16
Hi Vladimir,
Thank you for the explanation and for the code.

>Hi, Dmitry
>This is normal,
>this is linear structure
>you need to write code by example:
dimension new_aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
>FOR m.i = 1 TO alen(aMyArray,1)
>    FOR m.j = 1 TO alen(aMyArray,2)
>        new_aMyArray[m.i,m.j] = aMyArray[m.i,m.j]
>    NEXT
>    new_aMyArray[m.i,m.j] = .f.
>NEXT
>
>dimension aMyArray( alen(aMyArray,1), alen(aMyArray,2)+1 )
>ACOPY(new_aMyArray,aMyArray)
>HTH
>
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform