Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing row from array
Message
From
10/04/2018 04:27:45
 
 
To
10/04/2018 04:23:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01659245
Message ID:
01659277
Views:
128
>>>>>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.....
>>>>
>>>>ADEL() deletes array rows or columns.
>>>
>>>?
>>
>>It's right on the HELP of ADIR function:
>>
>>Deletes an element from a one-dimensional array, or a row or column from a two-dimensional array.
>>
>>ADEL(ArrayName, nElementNumber [, 2])
>>
>>More info at the ADEL Help topic:
>>https://docs.microsoft.com/en-us/previous-versions/visualstudio/foxpro/b26a3deh(v%3dvs.71)
>
>I know Fernando, what puzzles me is that I answered using ADEL(), so I don't know why I got that answer

I can only guess. Maybe it's because Adel() alone is not sufficient, you must re-dimension the array afterwards.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform