In a message regarding Re: keeping tabs in a canvas dated Sun, 5 Feb 2006
14:43:30 -0500, Joe Cabrera said that ...

> BTW, I've been using "key = Chr (9)" for my tab press check. Is that
> a kosher way to do it in my code, rather that your way above?

Yes it's the same thing.

However, if your checking for multiple keys, it's a little more efficient
to use something like:

  Select Case Asc(key)

and then compare against integers. It's only one function call.

--
Steve Garman
Using REALbasic 2006r1 Professional on Windows XP Pro


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to