>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...?!
If they're from same class you can brodacast a message to tell them to remove themselves. ie:
lparameters vNewVal
if vNewVal='destroy' and type('this.parent')='O'
this.parent.RemoveObject(this.name)
endif
thisform.SetAll('Action','destroy','myClass')
Cetin