Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reconciling Properties Concept to Fields Concept
Message
From
15/02/2006 16:57:07
 
 
To
15/02/2006 08:22:47
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01096402
Message ID:
01096601
Views:
16
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform