Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindevent crashes Fox
Message
From
31/05/2005 10:48:19
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01018697
Message ID:
01018706
Views:
10
Also what kind of interface should I implement for a vfp class to bind mscomm to?

Thanks

>The BINDEVENT() function should only be used to bind to the native VFP objects. See help for details.
>For COM objects there's EVENTHANDLER() Function.
>
>>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
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform