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 »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: go to card when i open the application

Post by dunbarx »

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 »

thanks for your helps
Post Reply