Author Topic: Button goto and script not running  (Read 2167 times)

Chandra

  • Newbie
  • *
  • Posts: 4
Button goto and script not running
« 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

Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 286
Re: Button goto and script not running
« Reply #1 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

I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

 

anything