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

Printing a variable

Status
Not open for further replies.

carnagr

Programmer
Jun 15, 2009
1
CA
This is a very basic question, but I cannot for the life of me figure out how to do it. I need to print out a string that loops for an integer from 1-48. My basic setup is

var = 1

proc main
do
Func1()
Func2()
transmit "1/1/**var**"
var++
while (var > 49)

endproc
 
The easiest way to do this is to use the strfmt command to build your string and then transmit it, like this:

strfmt sLine "1/1/**%d**" var
transmit sLine

where sLine is a string variable you would need to add to your script.

Is that the only question you had, or where you looking for the full solution to your script?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top