Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mscomm32.ocx / Serial Communications
Message
From
09/04/2003 07:00:29
 
 
To
08/04/2003 16:09:39
John Vlahos
V I Software Solutions Design
Mississauga, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00775141
Message ID:
00775406
Views:
18
In your OnComm event, read the input to a form property and test for the CR in the property.
*** ActiveX Control Event ***
#DEFINE _end_char CHR(10)

WITH THISFORM
  IF THIS.commevent = 2
    * Received RThreshold # of chars.
    .cinbuffer = .cinbuffer + THIS.input
    IF _end_char$.cinbuffer
      * Got a CR, so do your processing here
      * to extract the complete string and leave any
      * remaining chars in .cinbuffer.
      * Better yet, create a form method to
      * handle the extraction and cleanup:
      .processdata
    ENDIF
  ENDIF
ENDWITH
>When I capture the output to a file, the file consists of sequential lines with a fixed number of characters followed ny a carriage return and a line feed.
>
>The only possible output configurations for the WI-125 which I am using according to their spec's are the following:
>
>" G 1500 lb"
>" T 1500 lb"
>" N 1500 lb"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform