Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove Objects from a Form
Message
From
02/09/2005 08:53:18
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Remove Objects from a Form
Miscellaneous
Thread ID:
01046174
Message ID:
01046174
Views:
67
Dear All,

I append several objects programmatically, how can I remove it "automatically"?
e.g.

nEditBox1
nEditBox2
nEditBox3... nEditBox999

How can I issue a command to remove them all?
FOR x = 1 TO 999
    nLabel = EVALUATE([nEditBox]+TRANSFORM(x))
    f_form.removeobject(nLabel)
ENDFOR
However, I don't know how many EditBox I added beforehand...?!
Best regards,

Aaron Chu

********************************************************

Working with Visual FoxPro is a lot of FUN!

********************************************************
Next
Reply
Map
View

Click here to load this message in the networking platform