Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pop up : more than 1 line

Status
Not open for further replies.

andycape

Programmer
Aug 22, 2003
177
0
0
ZA
I am using the following pop up , is it possible to put the text onto more than one line ? (would do what <br> does in HTML). So i want the two sentances to be on seperate lines, not 1 long line.


<script language=VBScript>
Function a()
If MsgBox(&quot;One of your Pieces exceeds the Max or is shorter than the Min length for Materials. Do you which to Proceed?&quot;,vbYesNo)=vbYes Then

STUFF HERE

Else

STUFF HERE

End If
a=False
End Function
</script>

thanx.
 
Something like this ?
If MsgBox(&quot;One of your Pieces exceeds the Max&quot; & vbCrLf _
& &quot;or is shorter than the Min length for Materials.&quot; & vbCrLf _
& &quot;Do you which to Proceed?&quot;,vbYesNo)=vbYes Then


Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
It looks right, but I'm getting an error saying Invalid Character for some reason.
 
Probably a Copy/Paste issue

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
try this

msgbox &quot;your text&quot; & chr(13) & &quot;your text&quot;

the text after chr(13) will go to the next line.

hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top