Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing row from array
Message
From
11/04/2018 03:39:09
 
 
To
09/04/2018 04:57:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01659245
Message ID:
01659309
Views:
69
>>OK, my VPF is rusty and I'm being lazy.
>>
>>I have a two dim array (actually 8 "rows" with two "columns")
>>
>>What is the best way to remove the 5th row and end up with a 7 row array with the same name ?
>>
>>UPDATE : Doesn't matter - found an alternative approach.....
>
>
>function ArrayDelete_test
>
>	local aa[8, 2], i, j
>	
>	for i = 1 to 8
>		for j = 1 to 2
>			aa[m.i, m.j] = m.i + m.j/10
>		endfor
>	endfor
>	
>	=adel(aa,5)
>	dimension aa[7,2]
>	
>	
>	assert .f.
>	
>endfunc
>
Ah. ADEL() -thx
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform