Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy methods and properties from one form to another
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00633623
Message ID:
00633653
Vues:
19
>>Hi everybody,
>>
>>I have a form which is based on class which includes pageframe. This form has bunch of own properties and methods.
>>
>>I want to create another form based on another class (which doesn't have pageframe as a member), but this form should have all properties and methods as the first form. (E.g I want to re-design this form using another classlibrary).
>>
>>I put pageframe on the form, set pages to be 4, as on the first form, but now I'm thinking, how can I automate the process of copying properties and methods.
>>
>>Do you have ideas?
>>
>>Thanks in advance.
>
>I would save existing form under new name, open it in Form Designer and remove all objects you don't need anymore. After that you can use Class Browser to redifine base classes for the form and objects on it.

Thanks. I just copied properties, Reserved3, Methods from one form to another. And changed objects classes to another classlib. I'm trying to run this form, but get MorgTemp is not found (Grid.RecordSource). I'm trying to run the original form and getting lots of errors. I even can not run app. This is in home environment...

Anyway, I'm getting close...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform