Community
Hello!
i'm trying to program a message box that activates a second rule if "yes" i selected, and disregards the rule if "No" is selected. so far i have this, but no matter what button i press, it generates the PDF.. what exactly am i missing ?
SyntaxEditor Code Snippet
i = MessageBox.Show("Save current drawing as PDF?", "Save as", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) If vbYes Then iLogicVb.RunRule("auto pdf") If vbno End If
Solved! Go to Solution.
Solved by rhasell. Go to Solution.
i = MessageBox.Show("Save current drawing as PDF?", "Save as", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button1) If i=vbYes Then iLogicVb.RunRule("auto pdf") If i = vbNo
End If
Try this.
Can't find what you're looking for? Ask the community or share your knowledge.