Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

Reading a string from a TextEntry into an ASCII object

Hello,

 

I'm trying to use an ASCII object to send a text string out a seriel port to a very picky cell modem that is incompatible with the SMS feature. I'm using Lookout 6.7.1.

 

I have the ASCII object set up as follows:

RequestFormat= "%s%s"

RQV1.txt = "TO=5559991234"

RQV2.txt = "MSG= Hello"

 

Under this set up it works perfectly, however, I want to change RQV1 to read a string out of a TextEntry. This way I can change the dial out number without having to edit the ASCII connections.

 

I named the TextEntry ASCII_cell_test and changed the ASCII object to:

RequestFormat= "%s%s"

RQV1.txt = ASCII_cell_test

RQV2.txt = "MSG= Hello"

 

I then typed the string "TO=5559991234" into ASCII_cell_test, but no luck. I tried it with and without quotation marks.

 

My guess is I'll have to change the request format, but I keep getting syntax errors.

 

 

 

Anybody have any suggestions?

 

 

 

0 Kudos
Message 1 of 3
(3,764 Views)

Try using the value data member:

 

RQV1.txt = ASCII_cell_test.value

0 Kudos
Message 2 of 3
(3,758 Views)

No go - the (implicit) data member carries the currently entered text

0 Kudos
Message 3 of 3
(3,752 Views)