Ed is right. I understood that you have already some forms with a textbox based on a class and now you wanted to reassign this textbox programmatically by a script because you don't want to do all this work by hand. Ofcourse, my solution won't work on the fly! Your form objects are instances of some classes. You can't change that!
I would highly recommend you the book Advanced OOP with VFP 6 by www.hentzenwerke.com It is a great book and it is useful for VFP 9 also.
-Vassilis
----- Original Message ----- From: "Vassilis Aggelakos" <themelio AT otenet .DOT gr> To: "ProFox Email List" <profox@leafe.com> Sent: Friday, June 30, 2006 6:01 PM Subject: Re: Reassign a class to another one
> Forms are DBF Files too! > > Ok. I'll try to be better this time. > > 0. BACKUP YOUR FORM (SCX/SCT files) > > Try in the command window: > 1. USE <formname>.scx in 0 > 2. Browse > > you see all the objects of the form plus some records for internal VFP > use. (every control has its own record - look OBJNAME column) > > 3. Look in the column OBJNAME until you reach your Textbox. > 4. Replace CLASS with <NewClassName> > 5. Replace CLASSLOC With <ClassLocation> > > > -Vassilis > > > ----- Original Message ----- > From: "David Crooks" <dcrooks AT fadv .DOT com> > To: "ProFox Email List" <profox@leafe.com> > Sent: Friday, June 30, 2006 5:43 PM > Subject: RE: Reassign a class to another one > > >> On Friday, June 30, 2006 10:27 AM Vassilis Aggelakos wrote: >> >>>Keep in mind that VFP Classes (vcx) are pure dbf files. >>>You can browse them with: >>>USE <ClassName> in 0 >>>* locate record >>>Replace BASECLASS With <newClassName> >> >> I obliviously wasn't very clear. I have a form with a textbox that is >> using a class. Now I want assign it to another class that is read-only. >> Unfortunately, the class property is read-only so I need a way around >> it. Thanks! >> >> David L. Crooks >> >> >> >> [excessive quoting removed by server]
©2006 Vassilis Aggelakos |