Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindevent crashes Fox
Message
 
À
31/05/2005 10:32:34
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01018697
Message ID:
01018700
Vues:
13
>I have a simple form with a mscomm control and a container object.
>In Init of the contailner I have
>BINDEVENT('mscommname', 'oncomm', this, 'moncomm', 1)
>Where 'moncomm' is a custom method.
>
>That form works fine. If I save that form into a class and then run it:
>o = NEWOBJECT('form1', 'classname.vcx') Fox crashes.
>Here are parameters of the mscomm control:
>RThreshold = 2
>SThreshold = 0
>Settings = 9600,n,8,1
>
>Thanks


First parameter in BINDEVENT is Object itself not a Name of the object.

BINDEVENT(mscommname, 'oncomm', this, 'moncomm', 1)

UPDATE: I just realize that you try to use BINDEVENT on ActiveX control. I think you should use EVENTHANDLER()
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform