×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Output string?

Output string?

Output string?

(OP)
I want to output a string Example mom_output_literal "Test strin[g]$ma_sendto"
In this example it is an error due to the [] but I need to output them as text, and I also want the "$ma_sendto" to output as just that not a variable because it's not, is there a way to send this to the post as just a string that is not acted on?

RE: Output string?


Change your example to mom_output_literal "Test strin\[g\]$ma_sendto"

the back slash is in tcl to allow output of special characters.

I would recommend reading the tcl docs provided with post builder and there are a lot of Tck/Tk sites available on the web for example
http://www.tcl.tk/man/tcl8.5/tutorial/tcltutorial....

John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6, NX7.5,NX8.5, NX9.0
Vericut7.3

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources