Changing the title of a VBScript Window

Results 1 to 2 of 2

Thread: Changing the title of a VBScript Window

  1. #1
    DavidM Guest

    Default Changing the title of a VBScript Window

    Using this code below, how can I change the title of the pop up error message so it doesn&#039t say "VBScript"<BR><BR>&#060;SCRIPT Language="VBScript"&#062;<BR>Sub btnSubmit1_onclick()<BR> Dim ErrorString<BR> ErrorString = CheckFields()<BR> If Trim(ErrorString) = "" Then<BR> &#039No ERRORS<BR> frmFB.submit<BR> Else<BR> MsgBox ErrorString<BR> End If<BR>End Sub<BR><BR>Function CheckFields<BR> Dim strMissing<BR> If Trim(frmFB.transaction.value) = "" Then<BR> strMissing = "Please select a TRANSACTION NUMBER from the drop down menu."<BR> End If<BR> CheckFields = strMissing<BR>End Function<BR>&#060;/SCRIPT&#062;

  2. #2
    Join Date
    Dec 1969

    Default RE: Changing the title of a VBScript Window

    look up the syntax for the MessageBox function, or look at this:<BR><BR>MsgBox(prompt[, buttons][, title][, helpfile, context])<BR><BR>I think you can use this:<BR>MsgBox ErrorString, vbOkOnly, "Message Box Title"<BR>or else you have to use the parenthesis<BR>x=MsgBox(ErrorString, vbOkOnly, "MessageBoxTitle")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts