hexagon logo

problems running script

Has anyone else tried to run this script from the Wilcox site "tracesheet.bas"? I added all the assignments per the instructions and I get no output to the variables at all. If I'm correct should I not see the selections from the menu in the assignments in my pcdims program?



Thanks Bill



PCDMIS 3.7 MR3
PCDMIS 4.3 MR1
Parents
  • I think what you have going on here is that you have called the Dialog(Dlg1) instance twice in your program so it will open it twice. Once for the Button = Dialog(Dlg1) command and once for your if..then loop

    Your right I put this right after and it worked
    'Button = Dialog (Dlg1) comment out
    If  Dialog (Dlg1) = "-1" Then
     V3 = "OK"
    Else
    V3 = "Cancel"
     End If 
    
Reply
  • I think what you have going on here is that you have called the Dialog(Dlg1) instance twice in your program so it will open it twice. Once for the Button = Dialog(Dlg1) command and once for your if..then loop

    Your right I put this right after and it worked
    'Button = Dialog (Dlg1) comment out
    If  Dialog (Dlg1) = "-1" Then
     V3 = "OK"
    Else
    V3 = "Cancel"
     End If 
    
Children
No Data