DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

msgbox not appearing

Solved!
Go to solution

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 

0 Kudos
Message 1 of 6
(4,271 Views)
Solution
Accepted by adevins76

Hello!

 

Silly question: Do you call the sub somewhere?

 

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 6
(4,264 Views)
yes
0 Kudos
Message 3 of 6
(4,262 Views)

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?  
0 Kudos
Message 4 of 6
(4,260 Views)

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

 

0 Kudos
Message 5 of 6
(4,257 Views)

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?  
0 Kudos
Message 6 of 6
(4,252 Views)