At 1:03 PM -0500 4/18/06, Scott Thompson wrote:

Try something like this:

Scott, your code is indeed much clearer, but I'd make one suggestion:

if Uppercase(me.Text) = "Y" then 'Note: String comparisons of this type should NOT be case sensitive

String comparisons in RB are NEVER case sensitive, so the above code is exactly equivalent to:

  if me.Text = "Y" then

and also equivalent to:

  if me.Text = "y" then

To call Uppercase on a string, and then compare it (with "=") to something else, doesn't make sense in a language where case doesn't matter to comparisons anyway.

Best,
- Joe

--

Joseph J. Strout
[EMAIL PROTECTED]
_______________________________________________
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