How to tell if enter is pressed in textfield?

BlitzPlus Forums/BlitzPlus Programming/How to tell if enter is pressed in textfield?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

AUGH!

Couldn't you guys have told me this sooner... I just spent hours researching and writing this crap:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1319

And what did hours of research net me? A grand total of ONE function!

Of course if I hadn't insisted on typing out all the constant nicely for everyone it would have taken me a lot less time, but STILL!

And why didn't I think of checking for Chr$(13)? I checked for KeyHit()...

Acutally I DID think to check for Chr$(13)... When I THOUGHT about using crappy TextAreas, because I knew they must be recording enter in their strings. But I did not think that textfields would also return Chr$(13), because the strings they record don't contain them! And I didn't realise that EventData() returned the character typed into them.

BAH.