Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transmit integer as string

Status
Not open for further replies.

locharmoss

Programmer
Dec 30, 2002
2
US
Howdy, please can you help

I have the following lines of code in my script.

for NumA = 50000 upto 57999
transmit NumA

transmit "^M"

endfor

Except I need it to output

50000 (cr)
50001 (cr)

all the way until 57999

I know i am doing something dumb, Please help.

Instant recognition in my household for those who can help.

Allan
 
If you change your code to read:

for NumA = 50000 upto 57999
itoa NumA sNumA
transmit sNumA
transmit "^M"
endfor

and also declare a string variable called sNumA in your script, then this should do the trick for you. The transmit command only works with string values, so you need to convert the integer into a string.
aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top