Sorry to disturb you again ...
with other words I would like to replace the properties Class and Classlibrary
form an object his members.
(Myform.firstbutton.class)
>Methods and props from WHERE?
>
>When you redefine the class, properties and methods added to that class are not lost - you just change the base class. Well, if you meant code from base class - of course you will not have it because that base class is no longer a parent.
>
>Just try it on a simple test after backup of your class.
>
>BTW, you CANNOT create a class based on two other classes to mix properties and methods. Do do that, use only container with object in it or something like that.
>
>>Hi ?
>>Ok but then the I'm loosing the methods and prop. ?
>>I want a new class with the same additional methods and properties but based on another class ?
>>
>>>Hi!
>>>
>>>this is also simple:
>>>
>>>Open the library in the class browser, right click on the class and select "Redefine..." from the shortcut menu.
>>>
>>>>>Hi!
>>>>>
>>>>>- Just in the project manager you can drag and drop it.
>>>>>- There is a command for that
>>>>>- you can open 2 instances of class browser, open 2 libraries in each and drag&drop.
>>>>>
>>>>>HTH.
>>>>>
>>>>>>Hi all,
>>>>>>
>>>>>>is there a trick to copy a class from a classlib to another classlib ??
>>>>>>
>>>>>>ex.
>>>>>>
>>>>>> classlib.vcx copy anotherclasslib.vcx
>>>>>> -myform -------> -sameformAsmyform
>>>>
>>>>hanks for the fast response
>>>>
>>>>I will try that,
>>>>the thing I'm trying to do is changing the parentclass of a class.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement