03-10-2010 11:16 AM
I was writting and script and tried to add a msgbox to make sure that my script was working correctly up to that point. When added it nothing appeared. then i wrote a simple one.... nothing any ideas? is there some sort of setting that i need to change. I'm pretty new to diadem.
my simple script (as simple as they come):
sub hello ()
msgbox("hello")
end sub
and i got nothing... is there something wrong with my syntax? any help would be great. thanks
Solved! Go to Solution.
03-10-2010 02:41 PM
Hello!
Silly question: Do you call the sub somewhere?
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
03-10-2010 02:44 PM
03-10-2010 02:49 PM
AFAIK is there no setting that can cause this strange behaviour. What you can try, just to see if it makes a difference, is to use the old fashioned MsgBoxDisp command.
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |
03-10-2010 03:08 PM
Previosuly you asked whether i called the sub or not. I tried just running this sub as its own independant sub, is there something else i need to add to the code or elsewhere. im kinda new to coding so i apologize for lack of knowledge
03-10-2010 03:20 PM
If you define a sub you have to call it. Try this code:
Call hello() sub hello () msgbox("hello") end sub
Matthias
Matthias Alleweldt Project Engineer / Projektingenieur | Twigeater? |