card password

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
vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

card password

Post by vedus » Sat Nov 23, 2013 10:20 pm

i have a stack and 4 cards.
i have the card with let's say id "card4"
in the main stack i have 4 buttons,one for for every card.
when i click the button "card4" i want to ask me for a password.
because the test is for ipad i use the exaimple from http://lessons.runrev.com/s/lessons/m/4 ... ode-mobile.
but where is the password or(where i will store) and how i will pass it on ask dialog?
can anyone point me or guide to the right direction?
thank you..

Code: Select all

on mouseUp
   ask password "Please log in:" with "Your Password" titled "Your Password"
   if it is empty then exit to top
   if it = "mypass" then 
      go to card4
   else
      answer "Incorrect password.Please try again"
      end if
end mouseUp
the above code is working for me without errors,is secure procedure or i miss something?

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: card password

Post by Simon » Sat Nov 23, 2013 11:03 pm

Hi vedus,
In the notes section of the Dictionary entry for Ask Password.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

vedus
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 153
Joined: Tue Feb 26, 2013 9:23 am

Re: card password

Post by vedus » Sat Nov 23, 2013 11:11 pm

Simon wrote:Hi vedus,
In the notes section of the Dictionary entry for Ask Password.

Simon
I just read it it thank you simon..can i ask how i use the unicode in the ask dialogs?

Post Reply