Your Products have been synced, click here to refresh
'Set Program Variables Public Sub VarSet() Dim pcd As PCDLRN.Application pcd = CreateObject("pcdlrn.application") Dim pcpart As PCDLRN.PartProgram pcpart = pcd.ActivePartProgram Dim cmds As PCDLRN.Commands cmds = pcpart.Commands Dim cmd As PCDLRN.Command For i As Integer = 1 To cmds.Count cmd = cmds.Item(i) If cmd.IsFlowControl Then If cmd.TypeDescription = "Assignment" And cmd.GetText(PCDLRN.ENUM_FIELD_TYPES.DEST_EXPR, 0) = "JOBNO" Then cmd.PutText("" & TextBox3.Text & "", PCDLRN.ENUM_FIELD_TYPES.SRC_EXPR, 0) End If End If Next endForm() End Sub
'Set Program Variables Public Sub VarSet() Dim pcd As PCDLRN.Application pcd = CreateObject("pcdlrn.application") Dim pcpart As PCDLRN.PartProgram pcpart = pcd.ActivePartProgram Dim cmds As PCDLRN.Commands cmds = pcpart.Commands Dim cmd As PCDLRN.Command For i As Integer = 1 To cmds.Count cmd = cmds.Item(i) If cmd.IsFlowControl Then If cmd.TypeDescription = "Assignment" And cmd.GetText(PCDLRN.ENUM_FIELD_TYPES.DEST_EXPR, 0) = "JOBNO" Then cmd.PutText("" & TextBox3.Text & "", PCDLRN.ENUM_FIELD_TYPES.SRC_EXPR, 0) End If End If Next endForm() End Sub
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |