Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Createobject() or NewObject()
Message
 
 
À
02/02/2010 10:53:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Application:
Desktop
Divers
Thread ID:
01447109
Message ID:
01447128
Vues:
35
>>>Hello all
>>>Can I be made to understand something?
>>>as far as I understand
>>>Newobject() makes an object from a vcx libary
>>>and
>>>Createobject() creates an object
>>>
>>>so why when i do
>>>
>>>set classlib to _reportlistener
>>>lolistener=createobject("_reportlistener")
>>>
>>>Or
>>>
>>>set classlib to _reportlistener
>>>lolistener=newobject("_reportlistener")
>>>
>>>IT tells me Lolistener is not an object
>>>please answer :(
>>
>>Do you have _ReportListener.vcx classlibrary with _ReportListener class inside it?
>yes and as far as i know those are defaults...but i changed it 2 lolistener=createobject('_reportlistener')
>and now the code
>
>   SET CLASSLIB TO _Reportlistener 
>*lolistener=NEWOBJECT('_ReportListener')
>
>*lolistener=newobject('_ReportListener',home()+'ffc\_ReportListener.vcx')
>lolistener=CREATEOBJECT('_ReportListener')
>*SET CLASSLIB TO _ReportListener
>lolistener.outputtype=1
>lolistener.addreport('client.frx','nopageeject')
>lolistener.addreport('loan.frx','noreset')
>lolistener.runreports()
>
>is lying to me. In that...the little preview box tells me the name of the form shown is loan...when I know its client...it also shows the arrow red..the scroll arrow..b ut its innactive..are those my code errors?

If you show two reports in one preview, they both will show the same title. I don't know how to automatically change the title when you scroll to another report.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform