Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling user defined method
Message
De
12/01/2009 12:12:37
 
 
À
12/01/2009 12:00:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Divers
Thread ID:
01372815
Message ID:
01372858
Vues:
16
Dorris,

There aren't that many possibilities

(1) typo - Method name in the class or method name used to call

(2) if you can call it from within the form but not from outside - it will be hidden/.protected
Check by opening the class, menu: Class | Edit property/method

(3) ChkStatus may be defined as a property (happens to me too) and you are calling it as a function, ie ChkStatus()

Success,

>Not to my knowledge
>
>I created the form and saved it as class with the Form.SaveAsClass method
>
>
>>ChkStatus wouldn't be protected/hidden by any chance ?
>>
>>
>>>That also returns property ChkStatus is not found
>>>
>>>And yes, the method does exist and it does have code in it.
>>>
>>>>Did you verify in the Class Designer that method does exists? Try
>>>>
>>>>cb.chkstatus()
>>>>
>>>>>
>>>>>I've got a form that has an ActiveX control. I've saved it as a class. So, far - golden
>>>>>
>>>>>There is a method, chkstatus, that I created as a form method, resaved as class, but the class doesn't recognize the method. In other words, in the command window
>>>>>
>>>>>cb = createobj("chkBio") &&no problem, cb is created as an object
>>>>>cb.activate && works, prints out dummy information that I stuck in there to see if it was running
>>>>>cb.chkstatus && Says "Property CHKSTATUS is not found
>>>>>
>>>>>
>>>>>Ok, so what am I doing wrong?
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform