Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALINES() behavior
Message
From
19/09/2003 13:25:48
 
 
To
19/09/2003 11:04:48
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00830644
Message ID:
00830732
Views:
20
>>Hi all,
>>
>>Is this a normal behavior of ALINES() in VFP7?
>>
>>dimension aX[1,2] && two-dime array!
>>cX = ''
>>cX = cX + 'hello:world'
>>cX = cX + 'how:are'
>>cX = cX + 'you?:'
>>alines(aX,cX,.t.,':')
>>* i was expecting something like this
>>* aX[1,1] = 'hello'
>>* aX[1,2] = 'world'
>>* aX[2,1] = 'how'
>>* aX[2,2] = 'are'
>>* aX[3,1] = 'you?'
>>* aX[3,2] = .f.
>>* instead, i get this, a single-dime array!!!
>>* aX[1] = 'hello'
>>* aX[2] = 'world'
>>* aX[3] = 'how'
>>* aX[4] = 'are'
>>...
>>
>
>AFAIK it's. Redimension after alines. ie:
>
>cX = ''
>cX = cX + 'hello:world:'
>cX = cX + 'how:are:'
>cX = cX + 'you?:'
>alines(aX,cX,.t.,':')
>dimension aX[Ceiling(Alen(AX)/2),2] && two-dime array!
>disp memo like aX
>
Cetin

Thanks Cetin. This is a great workaround!
ramil
~~ learning to stand still
Previous
Reply
Map
View

Click here to load this message in the networking platform