Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / April 2005



Tip: Looking for answers? Try searching our database.

Sending CTRL+Z to Modem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Randy - 26 Apr 2005 21:17 GMT
I have an application that can instruct a cellular modem to send an SMS text
message.  To be sent in HyperTerminal, CTRL and Z must be held together
before the message can be sent.  How do I output CTRL+Z to the modem
programatically?
Ken Halter - 26 Apr 2005 21:19 GMT
>I have an application that can instruct a cellular modem to send an SMS
>text
> message.  To be sent in HyperTerminal, CTRL and Z must be held together
> before the message can be sent.  How do I output CTRL+Z to the modem
> programatically?

Send a Chr$(26)...

Signature

Ken Halter - MS-MVP-VB - http://www.vbsight.com
Sign up now to help keep VB support alive - http://classicvb.org/petition
Please keep all discussions in the groups..

Randy - 26 Apr 2005 21:38 GMT
Ken,

Thank you very much for the fast reply.  Chr(26) is the colon character.  
How does this translate to CTRL+Z?  Does this mean if someone included a
colon in their message it would be interpreted as a CTRL+Z and the message
would be sent unexpectedly?

Randy

> >I have an application that can instruct a cellular modem to send an SMS
> >text
[quoted text clipped - 3 lines]
>
> Send a Chr$(26)...
Karl E. Peterson - 26 Apr 2005 21:52 GMT
> Thank you very much for the fast reply.  Chr(26) is the colon
> character.

Umm, no.

 Debug.Print Asc(":")

> How does this translate to CTRL+Z?

It's a historical thing.  That's the way ASCII works.  The first 26 were control
chars.

> Does this mean if
> someone included a colon in their message it would be interpreted as
> a CTRL+Z and the message would be sent unexpectedly?

Absolutely not.

Later...   Karl
Signature

Working Without a .NET?
http://classicvb.org/petition

Dick Grier - 26 Apr 2005 21:53 GMT
Hi,

Chr(26) is control-Z, as Ken says.  The colon is Chr(58).

Dick

Signature

Richard Grier  (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2  (391 pages) published July 2004.  See
www.mabry.com/vbpgser4 to order.

Randy - 26 Apr 2005 22:18 GMT
Thanks everyone,

My bad.  I was looking at the chart wrong.  Sorry.

Randy

> Hi,
>
> Chr(26) is control-Z, as Ken says.  The colon is Chr(58).
>
> Dick
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.