Tracefield input from test file

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

  • Tracefield input from test file

    Looking to auto populate a Tracefield with the FILE/READLINE feature.

    What I have so far is the following:

    FILE/OPEN, [file location], READ
    FILE/READLINE, FPTR,
    ASSIGN/V2=????????
    TRACFIELD/ [from assignment V2 input]

    Does anyone know what I need to do in the assignment to auto populate what's in the text file into the Tracefield?


    Capture.PNG

  • #2
    What are you reading from the file? a number or text? U can read a number if u put assign/V2=INT(V1). Never tried text before.

    Comment


    • #3
      Your READLINE is not actually reading anything in because you haven't specified a variable to read into. The syntax should be as follows...
      Code:
      FPTR     =FILE/OPEN,[I]your file name goes here,[/I]READ
      V1       =FILE/READLINE,FPTR,{MY_VARIABLE}
               TRACEFIELD/DISPLAY=YES,REPORT=NO,DISPLAY MESSAGE=TEST TEXT ; TEST : MY_VARIABLE
      Neil Challinor
      PC-DMIS Product Owner

      T: +44 870 446 2667 (Hexagon UK office)
      E: [email protected]

      Comment

      Related Topics

      Collapse

      Working...
      X