Program Comment

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

  • Program Comment

    How do I print the contents of a string variable in a report comment?
    for instance:

    V1 = FAI

    COMMENT/REPT,"ALIGNMENT EQUALS "V1 - does not work

    I want, in report:
    ALIGNMENT EQUALS FAI

    My intent is to set V1 in various alignment programs (FAI, Manufacturing, etc.)
    Then run one set of inspection points and print a report that indicates which alignment was used.
    Last edited by RussL; 06-01-2006, 03:21 PM.

  • #2
    Russel please try this:
    COMMENT/REPT,"ALIGNMENT EQUALS " +V1 (space then +sign)
    Maq
    sigpic

    Comment


    • #3
      You can turn on the alingments to show in your report in "Prefereces" "Edit Window Layout" "Report"
      sigpicSummer Time. Gotta Love it!

      Comment


      • #4
        Originally posted by Maqboul
        Russel please try this:
        COMMENT/REPT,"ALIGNMENT EQUALS " +V1 (space then +sign)
        Maq
        If you want a space between EQUALS and the variable then the space needs to captured within the "", you don't actually need one between " and the + sign.
        James Temmen

        There is no job so simple that it can't be done wrong.

        Comment


        • #5
          I had tried the + sign.
          It returns a value of 0 (zero), yet V1 = "FAI"
          All I can figure is the + sign is used for numerical variables only.

          Comment


          • #6
            Have you switched over to REPORT mode and/or closed and reopened your program after doing the above mentioned? Because it should work.
            sigpic

            James Mannes

            Comment

            Related Topics

            Collapse

            Working...
            X