hexagon logo

Pass an Input Comment to a Tracefield

Ok I forgot the code for this and what I looked up in the search has not worked thus far.

V3.7 MR3
9-12-9 Xcel
Shapre 32 Controller

I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

Here is what I have tried

C1 = COMMENT/INPUT,YES,'ROUTE #'
TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

C1 = COMMENT/INPUT,YES,'ROUTE #'
TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

I also tried passing the input comment to a variable then to the tracefiled.

C1 = COMMENT/INPUT,YES,'ROUTE #'
ASSIGN/V1, C1.INPUT
TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

C1 = COMMENT/INPUT,YES,'ROUTE #'
ASSIGN/V1, C1.INPUT
TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

TIA
  • This works for me in 4.2-1-
    TRACEFIELD/DISPLAY,LIMIT=15 ; PALLET: 1
    it puts the "PALLET: 1" in my report
  • Ok I forgot the code for this and what I looked up in the search has not worked thus far.

    V3.7 MR3
    9-12-9 Xcel
    Shapre 32 Controller

    I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

    Here is what I have tried

    C1 = COMMENT/INPUT, NO,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; ROUTE # : C1.INPUT
    TIA


    I use this on all my programs, but the tracefields need to be refreshed. Hexagon sent me a little refresh.bas file that I put at the end of my programs and it updates all the tracefields. PM me your e-mail address and I will send you the refresh.bas file.
  • I use this on all my programs, but the tracefields need to be refreshed. Hexagon sent me a little refresh.bas file that I put at the end of my programs and it updates all the tracefields. PM me your e-mail address and I will send you the refresh.bas file.


    You could also post it here...
  • You could also post it here...


    +1


    Here you go. It includes the refresh.bas, a zero.bas (which clears all comment/inputs) and an example of how I use them.

    Attached Files
  • Moved to tips and tricks for the valuable information. Thanks DeWain for sharing.
  • Ok I forgot the code for this and what I looked up in the search has not worked thus far.

    V3.7 MR3
    9-12-9 Xcel
    Shapre 32 Controller

    I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

    Here is what I have tried

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

    I also tried passing the input comment to a variable then to the tracefiled.

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

    TIA


    Kevin, did you have the STATS command before you assigned the tracefields? I use your first method all the time and it works for me! The only thing I see missing is TRACEFILED/NO_DISPLAY,LIMIT=15; ROUTE# : C1.INPUT. It may have a problem with the # sign but your tracefield definition is missing a name!
  • Ok I forgot the code for this and what I looked up in the search has not worked thus far.

    V3.7 MR3
    9-12-9 Xcel
    Shapre 32 Controller

    I tried a couple different combinations but I could not get my input comment to pass to my tracefield.

    Here is what I have tried

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : C1.INPUT

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +C1.INPUT

    I also tried passing the input comment to a variable then to the tracefiled.

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : V1

    C1 = COMMENT/INPUT,YES,'ROUTE #'
    ASSIGN/V1, C1.INPUT
    TRACEFILED/NO_DISPLAY,LIMIT=15; : +V1

    TIA


    "Tracefield" is spelled "Tracefiled" above. If that is simply a forum typo disregard this post.
    If it is (somehow) spelled that way in the program it won't work.
  • Here you go. It includes the refresh.bas, a zero.bas (which clears all comment/inputs) and an example of how I use them.


    DeWain Hodge,

    I was wondering if you could send these files to my email, I am unable to access them via the forum, probably because of my IT department. I am a beginner in programming with PC-DMIS right now but I am really interested in looking at these files, as I have just begun to mess with .bas files myself. If I send you my email via private message would you do me the favor?
  • This works here at 3.7:

    STATION_IN =COMMENT/INPUT,YES,'Station # '
                STATS/ON,DATAPAGE,$
                DIRECTORY=P:\DATAPAGE\GKN,$
                DIRECTORY=,$
                READ=20,WRITE=20,MEMPAGES=256,DIMENSION NAME,CONTROLCALC ON,$
                STATS/END
                TRACEFIELD/NO_DISPLAY,LIMIT=15 ; Station : STATION_IN.INPUT
    


    The tracefield line must come after the stats on to "take" !

    TK