msgbox to confirm via VBA

msgbox to confirm via VBA

hi
i am using a zenon 6.51
the button have a function like "write a value - A (bool) to be true(1)"
by the way , the customer want a confirm stage with pop-up window.
pop-up window has both button "YES","NO" .
if clicked yes , the function will be run . ( A (bool) to be true(1)
and if clicked no, the function will be not run , just cancel.
so i put a below script on VBA - rightclickDown.
msgbox "test" , vbyesno
but it is not run.
how should i do to make it successful .

This is a migrated post! Originally posted on 02.02.2013 by user gyu. Please be aware that information can be outdated.