gettingstarted
[Top] [All Lists]

Re: PC code and Mac code different?

To: Getting Started <gettingstarted at lists dot realsoftware dot com>
Subject: Re: PC code and Mac code different?
From: Terry Ford <tmford at shaw dot ca>
Date: Sun, 27 Feb 2005 14:44:32 -0800
Delivered-to: gettingstarted at lists dot realsoftware dot com
References: <BAY2-F11E5EEE5711DDAB7491673DA670 at phx dot gbl>

On 27-Feb-05, at 1:25 PM, Lennox Jacob wrote:

Thanks Terry,
Worked flawlessly.
Would really appreciate some help with PC printing too.

I'll look into it later. Bedtime now.

BTW, do you understand *how* the following expression works?

 If (asc(Key)<32 and asc(Key)>48) or asc(Key)>57 then
      Beep
      Return True
   End if

It's really quite important that you do for things like this.

In this case, you only want the allowed ranges of Chr(0) to Chr(31) [Control Keys] and Chr(48) to Chr(57) [Numbers].

Hint: If you read it from left to right, it really shouldn't work.

Terry

PS. You can contact me off list if you prefer.

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

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

<Prev in Thread] Current Thread [Next in Thread>