hexagon logo

Variable from PCDMIS to Basic?

I was hoping someone could let me in on the secret to passing an assigned variable from my PCDMIS program into a Basic Subroutine.
Parents
  • Part program:
    ASSIGN/V1="ONE"
                ASSIGN/V2=2
    CS2        =SCRIPT/FILENAME= C:\TEMP\ARG_TEST.BAS
                FUNCTION/Main,SHOW=YES,ARG1=V1,ARG2=V2,,
                STARTSCRIPT/


    Basic Script
    Sub Main ( a1 As String, a2 As Integer)
    
      MsgBox (a1)
     
      MsgBox (a2)
    
    End Sub
    


    Modifications made to arguments values in the script will not be reflected in the part program variable values.
Reply
  • Part program:
    ASSIGN/V1="ONE"
                ASSIGN/V2=2
    CS2        =SCRIPT/FILENAME= C:\TEMP\ARG_TEST.BAS
                FUNCTION/Main,SHOW=YES,ARG1=V1,ARG2=V2,,
                STARTSCRIPT/


    Basic Script
    Sub Main ( a1 As String, a2 As Integer)
    
      MsgBox (a1)
     
      MsgBox (a2)
    
    End Sub
    


    Modifications made to arguments values in the script will not be reflected in the part program variable values.
Children
No Data