>>>I have a form that was created using FoxPro's base classes. I have since created my own library of classes and would like to change the class and parent class of the EditBox's, Command buttond etc in my existing form.
>>>
>>>Would replacing the class and parent class fields in the scx file work? Is there another way?
>>Replacing class and classloc in SCX works :)
>>Cetin
>>>
>>>Also, should I have based my set of classes on the standard FoxPro classes or the ones in the "My base classes" section of the componenet gallery in VFP 6?
>
>
>Cetin
>
>Is there more? I can only see one paragraph!
>
>Regards, Angel Maksacheff
Only one paragraph is true. I still use 5.0
function classchanger
lparameters tcFormName, tcClassName, tcNewClassName, tcClassLoc
tcFormName = tcFormName + ;
iif(upper(right(tcFormName,4))#".SCX", ".SCX","")
use (tcFormName)
replace class with tcNewClassName, ;
classloc with tcClassLoc ;
for lower(class) = lower(tcClassName)
use
Cetin