Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reconciling Properties Concept to Fields Concept
Message
De
15/02/2006 16:57:07
 
 
À
15/02/2006 08:22:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01096402
Message ID:
01096601
Vues:
14
Hi Fabio,

Nice. What limitations has this method?

I've tried a little example, which unfortunately does not work for me in VFP9:
oForm = CreateObject('myForm')
oForm.OverloadObject('atextbox','datetextbox','')
oForm.Show(1)

Define Class myForm as Form
   Add Object atextbox as textbox
   
   Procedure OverloadObject(cName,cClass,cClassLib)
     form::Removeobject(m.cName)
     form::Newobject(m.cName,m.cClass,evl(m.cClassLib,''))
   EndProc
EndDefine 

Define Class datetextbox as textbox
   Format = 'D'
EndDefine  
I get the error "Objectname is invalid" at the line form::Newobject. What did I misunderstood?

Bye, Olaf.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform