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
  • If the "ok" is selected this works fine and updates the pcdims program variable. Stays in the testit$ loop if "cancel" is selected. You have to select your choices on the menu and select "ok". Is there away to update "V3" in the above example during the .bas file avoiding the testit$ loop and changing the variable in the pcdims program?

    Bill



    You will need to add the Exit Sub line to whatever condition you use when you check that the cancel button was pressed. I haven't tested it but the example that I gave should work if you place it right after the Button = Dialog(dlg1) statement or in T Miller's if you put Exit Sub in the else contidtion right after V3= "Cancel" but you will also need to pass this value back to the PCD Program.
Reply
  • If the "ok" is selected this works fine and updates the pcdims program variable. Stays in the testit$ loop if "cancel" is selected. You have to select your choices on the menu and select "ok". Is there away to update "V3" in the above example during the .bas file avoiding the testit$ loop and changing the variable in the pcdims program?

    Bill



    You will need to add the Exit Sub line to whatever condition you use when you check that the cancel button was pressed. I haven't tested it but the example that I gave should work if you place it right after the Button = Dialog(dlg1) statement or in T Miller's if you put Exit Sub in the else contidtion right after V3= "Cancel" but you will also need to pass this value back to the PCD Program.
Children
No Data