PDA

Click to See Complete Forum and Search --> : VBScript Newbie - msgbox


alex_read
Aug 8th, 2000, 05:15 AM
Coming from VB & trying to learn VBS, can anyone tell me about the title of the Alert function?

With VB, I would normally do:
MSGBOX "SOME MESSAGE HERE",,"TITLE OF MSGBOX HERE"

With VBS Alert:
ALERT "SOME MESSAGE HERE"

But I cannot seem to find how to set the title. Any help very much appriciated, thank you!
Alex Read

HarryW
Aug 8th, 2000, 05:29 AM
I thought VBScript supported the MsgBox (client-side), so why not use that?

alex_read
Aug 8th, 2000, 05:44 AM
Thank you Harry for responding quickly. I didn't realise the messagebox was supported.

I have just tried this, and rather than the title showing as "TITLE OF MSGBOX HERE", as the original post, IE comes up with "VBScript: TITLE OF MSGBOX HERE". Is there any way to get rid of the VBScript : part?

Thank you.

Ianpbaker
Aug 8th, 2000, 05:47 AM
Hi Alex
This has been posted many times and as of yet I and I think no one else has come up with a solution for that problem. If any one has found out, do tell because half of this forum want's to know

Sorry I couldn't be more helpful

Ian

alex_read
Aug 8th, 2000, 05:49 AM
Sorry, I did not realise as I am new to this forum (normally use the VB general Q's on this site). I have tried other newsgroups too, so if I find ouut I will post back!

Thank you everyone,
Alex Read

Aug 9th, 2000, 06:10 AM
You could make a simple ActiveX control (in VB) that displays a proper message box. Then invoke it from your asp.

I'm assuming you're making a .vbs file to run on your own pc here... :)

alex_read
Aug 9th, 2000, 06:14 AM
Thank you everyone, I have been told everywhere that this is definitly not possible.

Thanks for the tip with the active x Matthew, unfortnately I only have learning edition, but I will look into this one.

noone
Aug 9th, 2000, 11:43 AM
The reason that you can't change the title is because malicious scripters might try to confuse the user into thinking the message box is from Windows and try and get them to do something stupid.

alex_read
Aug 10th, 2000, 02:43 AM
Can't see the point in writing viruses myself, but thinking about it, your answer makes sense no-one.

Bl!#@y annoying, but I guess it's for a good reason!

Aug 10th, 2000, 04:17 AM
If you want to try the ActiveX idea, then find an old cover CD and install VB5 CCE. It's free and will compile ActiveX controls for you.