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
  • Well I figured it out on my own. Here is my result.

    Program:
                ASSIGN/CMMPROGRAM="867575"
                ASSIGN/PRINTNUM="534543"
                ASSIGN/PRINTREV="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/
                ASSIGN/OPERATOR="Ryan"
                ASSIGN/JOB="99999"
                ASSIGN/SAMP="23"
                ASSIGN/SHIFT="1st"
                ASSIGN/FIXTURE="NO"
                ASSIGN/PROBE="NO"
    
Reply
  • Well I figured it out on my own. Here is my result.

    Program:
                ASSIGN/CMMPROGRAM="867575"
                ASSIGN/PRINTNUM="534543"
                ASSIGN/PRINTREV="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/
                ASSIGN/OPERATOR="Ryan"
                ASSIGN/JOB="99999"
                ASSIGN/SAMP="23"
                ASSIGN/SHIFT="1st"
                ASSIGN/FIXTURE="NO"
                ASSIGN/PROBE="NO"
    
Children
No Data