Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrays
Message
From
07/12/2000 13:59:00
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Arrays
Miscellaneous
Thread ID:
00450493
Message ID:
00450497
Views:
27
>I have a property array that contains 3 elements. How do I go about deleting one of the elements while retain other elements?
>
>currently it looks like this:
>
>.a__gen[1,1] contains 81
>.a__gen[2,1] contains .F.
>.a__gen[3,1] contains 83
>
>
>I would like to the above array to look like the following:
>
>.a__gen[1,1] contains 81
>.a__gen[2,1] contains 83
>
>
>basically I want to get rid of the element completely from array that contains .F. value.
>

You must ADEL() and DIMENSION the array again. e.g,
ADel(.a__gen,2)

* how you'll have
* .a__gen[1,1] = 81
* .a__gen[2,1] = 83
* .a__gen[3,1] = .F.

Dimension .a__gen(ALen(.a__gen,1)-1, ALen(.a__gen,2))
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform