Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing the class of existing objects
Message
From
25/01/1999 03:29:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/01/1999 16:11:17
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00179378
Message ID:
00179726
Views:
33
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform