>>> oForm = NewObject('frmForm','myclass.vcx')
>>> oForm.Textbox1.SaveAsClass('mysubclass','textbox1')
>>>
>>>
>>>Does anyone have a work around for this?
>
>I am tring to use saveasclass at runtime to save the controls on the form.
Tough one. Doing it at runtime doesn't, but (if there's not too much of it), you can create a blank form, copy/paste all the controls from the class to it, and then it with the controls on the form. I tried it manually with just one control, and it works from the menu. I opened the new form with the pasted control, and just did
=aselobj(a,1)
a[1].controls[1].saveasclass('test','dummy')
and there it was.
HTH
back to same old
the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.