Reducing Letters typed on a Push Button
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 3
- Joined: Sat Mar 28, 2015 2:31 pm
Reducing Letters typed on a Push Button
..........................
Last edited by Pencils212 on Sat Mar 28, 2015 7:47 pm, edited 3 times in total.
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Reducing amount of characters (letters) allowed as usern
Hi.
I would normally make you do a lot of work here, but my comrades would give me a lot of flack.
Make a field. In its script place:
Do you know what "me" is? Why does the term "tKey" exist at all? Why does the "8" work, when it seems that it should be "9"
Heh, heh.
Craig Newman
I would normally make you do a lot of work here, but my comrades would give me a lot of flack.
Make a field. In its script place:
Code: Select all
on keydown tKey
if the length of me < 8 then pass keyDown
end keydown
Heh, heh.
Craig Newman
-
- Posts: 3
- Joined: Sat Mar 28, 2015 2:31 pm
Re: Reducing amount of characters (letters) allowed as usern
thanks so muchhhh!
Last edited by Pencils212 on Sat Mar 28, 2015 7:47 pm, edited 1 time in total.
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Reducing amount of characters (letters) allowed as usern
OK.
But don't you see where the test HAS to be?
Now you do have homework. What do you do if the entry does indeed exceed eight chars? Certainly not just nothing, eh?
Craig
But don't you see where the test HAS to be?
Code: Select all
if the result is not "Cancel" and the length of it < 9 then
Craig
-
- Posts: 3
- Joined: Sat Mar 28, 2015 2:31 pm
Re: Reducing Letters typed on a Push Button
Thanks so much !!!
-
- VIP Livecode Opensource Backer
- Posts: 365
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Reducing Letters typed on a Push Button
Hi
What was the actual question ? I don't have a Rosetta Stone to decipher "...................."
Lagi
What was the actual question ? I don't have a Rosetta Stone to decipher "...................."
Lagi
Re: Reducing Letters typed on a Push Button
Hi Lagi,
yes, that's a bit strange, there was nothing illegal, immoral or fattening in the initial question!?
But everyone has its little daemons, right
Best
Klaus
yes, that's a bit strange, there was nothing illegal, immoral or fattening in the initial question!?
But everyone has its little daemons, right
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Reducing Letters typed on a Push Button
It makes me wonder how I made a decent response.
Craig
Craig
-
- VIP Livecode Opensource Backer
- Posts: 365
- Joined: Mon Jun 10, 2013 1:32 pm
Re: Reducing Letters typed on a Push Button
Now you're both teasing .... or just ..
Re: Reducing Letters typed on a Push Button
IIRC I think it was about using the"ask" dialogue to obtain user input but restricting the possible input data.
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Reducing Letters typed on a Push Button
It was indeed, though the language did not make that clear until the repost, the original sounding like it was data typed into a field.IIRC I think it was about using the"ask" dialogue to obtain user input but restricting the possible input data.
Not sure what happened. The OP could certainly put empty into his post instead of deleting it. I wonder if it was a typo.
Craig