Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subclassing MSComm Control
Message
 
 
To
19/07/2000 12:02:43
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00393493
Message ID:
00394388
Views:
10
Jon,
This is not event handling to me. This is just implmenting a wait state where an event can occur (you don't know) and then checking to see if it did. An event handler would immediately activate when a Status, Negotiation, etc, event occurred.

BTW, the ASP implementation of this Fax control looks cool.

Regards.

< snipped >
>FWIW, I recently purchased an ActiveX that provides a way to implement the ActiveX's event handlers from within an ASP page.
>Here's a snippet of the VBScript code:
>
Do
> ActiveXControl1.WaitForEvent 10000 ‘Wait for 10 seconds
> Select Case ActiveXControl1.LastEventType
> Case EVENT_STATUS ' status event occurred
> i = 0
> Text1.SelText = "Status" & vbCrLf
> Case EVENT_NEGOTIATION ' negotiation event occurred
> Text1.SelText = "Negotiation" & vbCrLf
> Case EVENT_STARTTIME 'starttime event occurred
> Text1.SelText = "StartTime" & vbCrLf
> Case EVENT_ENDTIME 'endtime event occurred
> Text1.SelText = "EndTime" & vbCrLf
> Case EVENT_COMPLETE 'complete event occurred
> Text1.SelText = "Complete" & vbCrLf
> Case EVENT_TIMEOUT 'timeout event occurred
> i = i + 1
> Text1.SelText = "Timeout" & vbCrLf
> End Select
> Loop Until (ActiveXControl1.LastEventType = EVENT_COMPLETE) Or (i = 9 ) ‘ 90 idle seconds

>
>FWIW, these events are not user-generated, but are generated during the process of a fax transmission and are used to notify your app of the progress.
>
>Jon
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform