Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Did ADEL() change behavior?
Message
From
23/03/2002 13:25:15
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Did ADEL() change behavior?
Miscellaneous
Thread ID:
00636460
Message ID:
00636460
Views:
41
I just read in VFP 7.0 help for ADEL():
"If you delete a column, values of the elements in the deleted column are set to False (.F.), but trailing elements are not moved."

But in VFP 5.0:
"Deleting an element, row, or column from an array doesn’t change the size of the array; instead, the trailing elements, rows, or columns are moved towards the start of the array, and the last element, row, or column in the array is set to false (.F.)."

I just tested it in 5.0 and 7.0 with this:
dimension ga(3,3)
for gn = 1 to alen(ga)
  ga(gn) = gn
endfor
= adel( ga, 2, 2 )
and got the same results in both versions.
ga(1,1)=1
ga(1,2)=3
ga(1,3)=.f.
ga(2,1)=4
ga(2,2)=6
ga(2,3)=.f.
ga(3,1)=7
ga(3,2)=9
ga(3,3)=.f.

Obviously the help file in 7.0 is wrong. Do I need to worry about future versions changing behavior to match the help file? Or will the help file be corrected in future versions?

Also, where do I report this error in the help file?
Bill Morris
Next
Reply
Map
View

Click here to load this message in the networking platform