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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help simple script to output integers 200-999

Status
Not open for further replies.

djs01

Technical User
Dec 3, 2001
82
CA
We are using procomm plus and aspect scripting to program a PBX (tel system). We need to program all office codes from 200-999. I have been trying to use integer nxx = 200, but am unable to send the integer to the com port. We need to increment the integer by 1, then send again, until integer nxx = 999. Can anyone help me with the loop, and sending the integer value to the com port? Thanks in advance. Dave
 
I think this script should work OK for you. If not, just give a shout.

proc main
integer iNum
string sOutput

for iNum = 200 upto 999
itoa iNum sOutput
transmit sOutput
endfor
endproc
 
Thank-you, Thank-you, Thank-you. It works like a charm. This script will save me hours of manually programming.
Great Forum, great advice.
A gold mine of technical knowledge and wisdom!

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top