Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RemoveObject
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01655998
Message ID:
01656003
Views:
80
Likes (1)
with thisform
For m.lii=.ControlCount TO 1 STEP -1
     m.loObj=.Controls(m.lii)
    =IIf(Lower(obj.Class)=="ycnt",.RemoveObject(obj.Name),.T.)
Next
endwith
MartinaJ

>thanks Albert for the reply.
>
>i use this code below to try to remove all containers on the form ( based on the class ycnt container)
>
>with thisform
>For Each obj In .Controls
>  If Lower(obj.Class)=="ycnt"
>	.RemoveObject(obj.Name)
>	DoEvents
>  Endi
>Next
>endwith
>
>
>i tried also to remove first all objects in each container based ycnt and then remove the container form the from with removeObject(obj.name)....no good result.
>there is always some ycnt containers persisting appear on the form.
>using the vertical form.scrollbar make the form with garbages also.
>
>see the 2 photo attached.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform