go to card when i open the application

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
problème
Posts: 77
Joined: Fri Oct 23, 2015 12:03 am

go to card when i open the application

Post by problème » Wed Jan 06, 2016 7:14 pm

Hello,
When i open my application i want to go to card1, so i do this in the mainstrack script

Code: Select all

on preOpenStack
   go to card "card1"
end preOpenStack
but it does not work, when i open the application, it goes to card2

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: go to card when i open the application

Post by quailcreek » Wed Jan 06, 2016 8:35 pm

Try using the card ID.

Code: Select all

go cd ID nnnn
Tom
MacBook Pro OS Mojave 10.14

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: go to card when i open the application

Post by dunbarx » Wed Jan 06, 2016 10:21 pm

Hmm.

Have you looked at the name of card 2? You could always, of course:

Code: Select all

on preOpenStack
   go to card 1
end preOpenStack
Anyway, unless directed otherwise, all stacks open by default at card 1. Do you need more?

Craig Newman

problème
Posts: 77
Joined: Fri Oct 23, 2015 12:03 am

Re: go to card when i open the application

Post by problème » Fri Jan 08, 2016 6:58 am

thanks for your helps

Post Reply