Page 1 of 1

Looking for CR/LF

Posted: Mon Jul 28, 2008 5:24 pm
by Andycal
This is causing me a headache at the minute, and I'm sure it's easy...

I've got a text field on a stack and I want to type in a bunch of numbers, hit enter and then have RunRev do somthing based on that number.

I'm guessing I'm looking for 'rawkeydown' or something?

Posted: Mon Jul 28, 2008 6:12 pm
by Mark
Hello Andycal,

First the title of this forum thread. Cr and lf, and also crlf, are constants in Revolution. Cr and lf both return ASCII 10 (linefeed) and crlf return ASCII 10 and ASCII 13 together (linefeed and return). That's why your question confused me when I read it for the first time.

Apparently, you want Revolution to respond when you press the enter or return key. You can do this by trapping the enterKey, returnkey, enterInField or returnInField messages. The first two are sent if you press the enter respectively return key while no field is currently selected or focused. The latter two are sent if the text insertion point is in a field and enter respectively return is pressed.

You might want to read what the docs have to say about these messages.

Best,

Mark

Posted: Mon Jul 28, 2008 10:51 pm
by Andycal
Thanks for the headsup - I still get confused with all the built in stuff like 'enterKey' etc. It's a problem when I don't use RunRev all the time and only dip in now and then!