> From: "Mark O'Neill" <[EMAIL PROTECTED]>
> Date: Fri, 2 Jun 2006 15:06:44 +0100
> 
> | Every once in awhile when my application displays a MsgBox 
> | that will appear
> | way too large for the amount of text in the message box.  
> | This is happening
> | in the Windows and Macintosh builds of the application as 
> | well as in the
> | debugger.  I am using RB2006r2 Pro on Windows XP SP2.  The 
> | application is
> | compiled for Windows and Macintosh Mach-O.  It appears to be 
> | a random event
> | as the same MsgBox will display again and the size will be 
> | normal.  I am
> | curious as to what is causing this to happen.
> 
> Do you have some code that I can use to test it
> for you?
> 
> All the best,
> 
> Mark.

Here is a sample of what I am doing...

    if len(Box.Text) < 1 then
      MsgBox("You must provide a box name.")
      Box.SelStart = 0
      Box.SelLength = len(Box.Text)
      Box.SetFocus
      return false
    end if
    Box.Text = Uppercase(Box.Text)
    if len(PassWord.Text) > 8 then
      PassWord.Text = Left(PassWord.Text, 8)
    ElseIf len(PassWord.Text) < 1 then
      MsgBox("You must provide a password.")
      PassWord.SelStart = 0
      PassWord.SelLength = len(Box.Text)
      PassWord.SetFocus
      return false
    end if

David

_______________________________________________
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