Your Products have been synced, click here to refresh
If Button = 0 then [COLOR=red](aparently 0 is the value for the cancelbutton according to an example I found in the help files...)[/COLOR] Dim App As Object Set App = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram Dim Cmds As Object Dim Cmd As Object Set Cmds = Part.Commands For Each Cmd In Cmds If Cmd.Type = ASSIGNMENT Then If Cmd.GetText(DEST_EXPR, 0) = "BUTTON" Then bln = Cmd.PutText("Cancel", SRC_EXPR, 0) Cmd.ReDraw End If Next Cmd Exit Sub End If
If Button = 0 then [COLOR=red](aparently 0 is the value for the cancelbutton according to an example I found in the help files...)[/COLOR] Dim App As Object Set App = CreateObject("PCDLRN.Application") Dim Part As Object Set Part = App.ActivePartProgram Dim Cmds As Object Dim Cmd As Object Set Cmds = Part.Commands For Each Cmd In Cmds If Cmd.Type = ASSIGNMENT Then If Cmd.GetText(DEST_EXPR, 0) = "BUTTON" Then bln = Cmd.PutText("Cancel", SRC_EXPR, 0) Cmd.ReDraw End If Next Cmd Exit Sub End If
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |