Page 1 of 1

Reducing Letters typed on a Push Button

Posted: Sat Mar 28, 2015 2:37 pm
by Pencils212
..........................

Re: Reducing amount of characters (letters) allowed as usern

Posted: Sat Mar 28, 2015 3:41 pm
by dunbarx
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:

Code: Select all

on keydown tKey
   if the length of me < 8 then pass keyDown
end keydown
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

Re: Reducing amount of characters (letters) allowed as usern

Posted: Sat Mar 28, 2015 4:38 pm
by Pencils212
:D thanks so muchhhh!

Re: Reducing amount of characters (letters) allowed as usern

Posted: Sat Mar 28, 2015 6:07 pm
by dunbarx
OK.

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
Now you do have homework. What do you do if the entry does indeed exceed eight chars? Certainly not just nothing, eh?

Craig

Re: Reducing Letters typed on a Push Button

Posted: Sat Mar 28, 2015 6:57 pm
by Pencils212
Thanks so much !!!

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 10:06 am
by Lagi Pittas
Hi

What was the actual question ? I don't have a Rosetta Stone to decipher "...................." :?

Lagi

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 12:15 pm
by Klaus
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 8)


Best

Klaus

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 1:50 pm
by dunbarx
It makes me wonder how I made a decent response.

Craig

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 3:32 pm
by Lagi Pittas
Now you're both teasing .... or just .. :twisted:

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 6:58 pm
by SparkOut
IIRC I think it was about using the"ask" dialogue to obtain user input but restricting the possible input data.

Re: Reducing Letters typed on a Push Button

Posted: Tue Mar 31, 2015 7:16 pm
by dunbarx
IIRC I think it was about using the"ask" dialogue to obtain user input but restricting the possible input data.
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.

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