"Juanjo" <jjcarreno@inst asoft.es> wrote in message
news:04e301c3c2 fe$66ab4d10$a50 1280a@phx.gbl.. .[color=blue]
> Hi, I need to know how can I send the CTRL + Z character
> to a modem[/color]
[color=blue]
>-----Original Message-----
>Hi,
>
>As far as I remember, the code of this character is 26.[/color]
So you could send a[color=blue]
>byte with value 26 to the modem stream.
>
>Hope this answers your question.
>
>--
>Dmitriy Lapshin [C# / .NET MVP]
>X-Unity Test Studio
>http://x-unity.miik.com.ua/teststudio.aspx
>Bring the power of unit testing to VS .NET IDE
>
>"Juanjo" <jjcarreno@inst asoft.es> wrote in message
>news:04e301c3c 2fe$66ab4d10$a5 01280a@phx.gbl. ..[color=green]
>> Hi, I need to know how can I send the CTRL + Z character
>> to a modem[/color]
>
>.
>thank you very much, I think I do it before, but I will[/color]
try to do it again. bye
I suppose the problem is with this (and similar) lines. You can try passing
the Buffer variable itself as an argument. Unfortunately, I have never
worked with the ActiveX you use so I probably cannot be more helpful.
Then, this type cast:
(char) 13
looks suspicious to me. You can try specifying special characters like this:
Buffer = "AT+CMGF = 1\x0d";
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
"Juanjo" <jjcarreno@inst asoft.es> wrote in message
news:046901c3c3 1b$e064edb0$a00 1280a@phx.gbl.. .
I don´t know what is the problem but my gsm modem doesn´t
work with this lines of code
Comment