hexagon logo

Passing a PC Dmis Variable into a Text object in Basic

Ok so I normally use a comment to display information about a program that I keep hardcoded in the program. Print Information, What operation the program is for. Just normal stuff for the operators. I'm trying to condense it all down to a neat window that has their inputs and will display the information as well. I can't seem to figure out how to display the contents of a PC Dmis variable in a text object in a Basic Script Dialogue display.


Set Partnam = Part.GetVariableValue("PARTNAM")

Text 160,40,80,12, .Text2

Dialg.Text2=Printnam.StringValue

I can't use the last line prior to the dialogue. If I use it after it still shows up blank. Any positive/constructive ideas? I'm sure i'm just missing a simple step.
Parents
  • Ok here is the whole script. Maybe this will help explain what I am trying to accomplish.

    program:
    ASSIGN/CMMPROGRAM="867575"
    ASSIGN/PRINTREV1="534543"+" , Rev."+"A"
    ASSIGN/PARTNAM="54w643653"
    ASSIGN/PARTNUM="4356363ty3y"
    CS3        =SCRIPT/FILENAME= C:\PC-DMIS\4_3\BASIC SCRIPTS\FORM EXAMPLE.BAS
                FUNCTION/Main,SHOW=YES,,
                STARTSCRIPT/
                ENDSCRIPT/
    ASSIGN/OPERATOR=""
    ASSIGN/JOB=""
    ASSIGN/SAMP=""
    
Reply
  • Ok here is the whole script. Maybe this will help explain what I am trying to accomplish.

    program:
    ASSIGN/CMMPROGRAM="867575"
    ASSIGN/PRINTREV1="534543"+" , Rev."+"A"
    ASSIGN/PARTNAM="54w643653"
    ASSIGN/PARTNUM="4356363ty3y"
    CS3        =SCRIPT/FILENAME= C:\PC-DMIS\4_3\BASIC SCRIPTS\FORM EXAMPLE.BAS
                FUNCTION/Main,SHOW=YES,,
                STARTSCRIPT/
                ENDSCRIPT/
    ASSIGN/OPERATOR=""
    ASSIGN/JOB=""
    ASSIGN/SAMP=""
    
Children
No Data