Use assigned value in comment text?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Use assigned value in comment text?

    Ver 3.7:

    Is it possible to print the value of an assigned variable in a report comment text?

    What I want to do would look something like this:

    ASSIGN/V1 = 2
    COMMENT/OPER,NO, Move to Y='V1'


    Thanks!

    Chris

  • #2
    Yes but I'd put the string portion in quotes just to be safe and you have to use + to concatenate example:
    Code:
    ASSIGN/V1 = 2
    COMMENT/OPER,NO, "Move to Y= " + V1
    This works with report comments as well as operator comments.

    Craig
    <internet bumper sticker goes here>

    Comment


    • #3
      Awesome, thanks!

      That was easy- I wonder why I couldn't find it in the reference manual...

      Comment


      • #4
        Because you went to the reference manual. Ask here. I've learned alot since i started coming to this site. The reference manual is helpful enough to make you dangerous...lol
        sigpic.....Its called golf because all the other 4 letter words were taken

        Comment


        • #5
          When it comes to this CMM stuff, I am 100% self taught. I have never had the priviledge of working with someone that could mentor me. Oh yeah, self taught means looking in the documentation, using the F1 key more than any other one on the keyboard, visiting sites like this one (although admittedly I just started that) and more than anything, just trying it. You will never break anything with code (when in doubt run it on slow with one hand on the e-stop). If you can think of something you'd like to make happen try it. Just write the code the way you think it will make sense and hit go. Sometimes it works the first time, sometimes it puts you on a trail to find out, and sometimes it baffles you. At least you tried it, you never know where it can take you. There is more stuff in this software than any one person will ever make full use of. Think about what you want to do and try it. cmetcalfe was on the right trail.
          <internet bumper sticker goes here>

          Comment

          Related Topics

          Collapse

          Working...
          X