Notifications
Clear all

[Closed] diolague system exception

ok i’m stumped on this. i have used this before but for some reason i have this System exception for my diolague creation.

not sure whats going on but the Diolague is created but nothing works after that.

here is the code with the error.


(

rollout BlockRoll “Block”
(
button RBTN “EggECute” pos:[25,25] width:55 height:16
)
on RBTN pressed do
(
print “hello World”
)
blockFloater = newRolloutFloater “Block” 100 100

addRollout BlockRoll blockFloater
)

this is the error i get

** system exception **
OK

cheers

john

4 Replies
 JHN

You have the eventhandler outside of the rollout. That will never work.


 
(
	rollout BlockRoll "Block"
	(
		button RBTN "EggECute" pos:[25,25] width:55 height:16
		
		on RBTN pressed do
		(
			print "hello World"
		)
	)
	blockFloater = newRolloutFloater "Block" 100 100
	addRollout BlockRoll blockFloater
)
   

You should definetly consider using indention of your code blocks, it makes for a much clearer reading.

-Johan

try this:

(
 	rollout BlockRoll "Block"
 	(
 		button RBTN "EggECute" pos:[25,25] width:55 height:16
 
 		on RBTN pressed do
 		(
 			print "hello World"
 		)
 	)
 
 	blockFloater = newRolloutFloater "Block" 100 100
 	addRollout BlockRoll blockFloater
 )

PS: sorry didnt see ur post above

 JHN

Hahaha, well at least the solution is clear

hehe thanks guys wow dont i feel dumb now! yeah i do have indents for some reason the thing did do it when i posted. trying to do tomany things at oce

thanks again

cheers