HyperNext Android Creator

Finding help on HAC => Interface Controls => Topic started by: Chandra on December 02, 2011, 11:17:20 AM

Title: Button goto and script not running
Post by: Chandra on December 02, 2011, 11:17:20 AM
Hello
My project jumps to another card but the script inside the gotobutton is not executed.
If I don't set the button to goto using the tool bar then the button's script runs but if the button is selected for goto then the script is ignored. How can the button script run and then jump to the required card?
Chandra
Title: Re: Button goto and script not running
Post by: Malkom on December 02, 2011, 01:20:32 PM
Hi Chandra

If you need a script to run inside a button then do not use the button's GotoCard property on the toolbar because that property disables a button's script.

Instead, just use the GotoCard command inside your button:-
Code: [Select]

@ button script to run
..
IF (x=2) THEN
   GotoCard 2
ENDIF
..
..

GotoCard 4

Malkom