4 Replies - 4829 Views - Last Post: 28 May 2002 - 07:13 PM Rate Topic: ***** 1 Votes

#1 Ruck  Icon User is offline

  • $

Reputation: -5
  • View blog
  • Posts: 1,033
  • Joined: 03-September 01

MsgBox

Posted 05 February 2002 - 11:04 AM

Could someone do a quick rundown for me on how to format a MsgBox properly? I'm trying to make one pop-up on a error 13 when people click Convert without entering in a value. This is what I have already and I must say it's rather lame using a label.
Private Sub Convert_Click()
If IsNumeric(Dollars) Then
    If OptFromUS = True Then
        If List.ListIndex = 0 Then Output = Format(1 / 0.628535 * Dollars, "currency")
        If List.ListIndex = 1 Then Output = Format(1 / 0.506001 * Dollars, "currency")
        If List.ListIndex = 2 Then Output = Format(1 / 0.864797 * Dollars, "currency")
    End If
    If OptToUS = True Then
        If List.ListIndex = 0 Then Output = Format(0.628535 * Dollars, "currency")
        If List.ListIndex = 1 Then Output = Format(0.506001 * Dollars, "currency")
        If List.ListIndex = 2 Then Output = Format(0.864797 * Dollars, "currency")
    End If
Else
    error.Caption = "Please input a value for conversion!"
End If
End Sub


Is This A Good Question/Topic? 0
  • +

Replies To: MsgBox

#2 Ruck  Icon User is offline

  • $

Reputation: -5
  • View blog
  • Posts: 1,033
  • Joined: 03-September 01

Re: MsgBox

Posted 07 February 2002 - 01:37 AM

Hohum. ;)
Was This Post Helpful? 0
  • +
  • -

#3 DestroyerOfWorlds  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 55
  • Joined: 11-October 01

Re: MsgBox

Posted 19 February 2002 - 09:09 PM

Hey Ruck... I think I can help you if you still need it but I'll need your porject you can contact me on aim.
Was This Post Helpful? 0
  • +
  • -

#4 Ruck  Icon User is offline

  • $

Reputation: -5
  • View blog
  • Posts: 1,033
  • Joined: 03-September 01

Re: MsgBox

Posted 20 February 2002 - 10:43 PM

Umm, okay. It's at school though and I'm on break. So the earliest that I'd be able to post it is next Monday.
Was This Post Helpful? 0
  • +
  • -

#5 xilica  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 0
  • Joined: 28-May 02

Re: MsgBox

Posted 28 May 2002 - 07:13 PM

Is this the code for the error:

error.Caption = "Please input a value for conversion!"

If it is, here is how you would make that a MsgBox:

error.Caption = MsgBox("Please input a value for conversion!")

If you would like to add a label,buttons, and an icon for the MsgBox then reply and I will fill in on how.

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1