Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with MSComm control
Message
 
 
To
07/06/2001 09:25:44
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00515479
Message ID:
00516483
Views:
17
>>>Hello,
>>> Wondering if anyone can explain this to me. I'm using the MSComm control to open Com1. I can send and receive everything I need except this:
>>>
CHR( 01 ) + CHR( 65 ) + CHR( 13 )
>>>(which is an F2 on a Wyse terminal).
>>>It doesn't work at all, but if I open Com1 with FOpen and FWrite the same data down the wire, I get the desired result. Anybody got any ideas? Thanks,
>>>John
>>
>>
>>More info:
>> Okay, with the MSComm control, it sends the data, but it must be changing something. Basically, an F2 on Wyse 50 emulation will refresh the screen we are working with. If I send it using low level manipulation, it refreshes the screen, but if I send it using the MSComm control, it just prints the control characters on the string. Can anyone offer any help on this? Thanks again,
>>John
>
>I haven't tried this, but the MSCOMM help says that to pass control strings you need to pass binary data - the data you've created is a string, which can be converted to binary using the CREATEBINARY function.


Thanks Len, unfortunately, I've already tried this, with the same results, still printing on the screen. It has me totally blown because it works with low level file functions okay. Thanks anyway,
John
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform