Solved

how to create VBScript message box without the "VBSscript" name?

Posted on 2004-08-12
3
272 Views
Last Modified: 2010-05-18
1. How to create VBScript message box without the additional name "VBSscript" which appears before message box title?(to make same as VBA message box, which have no additional name before message box title).

for example, that message box show this "VBScript:" name before Title:
<HTML>
<BODY>

<SCRIPT LANGUAGE="VBSCRIPT">
<!--
Dim Answer
Sub Window_OnLoad()
  Answer = MsgBox ("Message text", 64, "Title")
End Sub
//-->
</SCRIPT>

</BODY>
</HTML>

2.How to separate long text (Line break) in message box that the message looked more attractively?
Does it possible also add paragraphs?

Thanks
0
Comment
Question by:Sirocco
3 Comments
 
LVL 22

Assisted Solution

by:DarkoLord
DarkoLord earned 60 total points
ID: 11782266
For the first question think you cant get rid of that "VBScript:" prefix in the tits

As for the second question, you can break the message using vbCrLf constand:

MsgBox "this is a very very" + vbCrLf + "long message, but you can still" + vbCrLf + "split it to multiple lines"

Darko
0
 
LVL 18

Accepted Solution

by:
JR2003 earned 65 total points
ID: 11782283
To add line breaks
Answer = Msgbox ("Message text"  & Chr(10) & Chr(13) & "and more text", 64, "Title")
0
 

Author Comment

by:Sirocco
ID: 11791139
It seems, this variant looks a  little more correct:

Msgbox ("Message text" + (Chr(13) & Chr(10)) +"and more text", 64, "Title")

Sirocco
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now