LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-02-2006, 04:09 PM   #1
betterworld07
LQ Newbie
 
Registered: Apr 2006
Distribution: Fedora Core 4
Posts: 8

Rep: Reputation: 0
vb script


okey anyone know about the function for confirmation mesg box ? something like this.. when u click the button, a window will popup that hav confirmation "ok" or "cancel".. what's the script ?
sumthing like

msgbox "text here" .. this is for mesgbox but i need for confirmation mesgbox thank u
 
Old 04-03-2006, 07:00 AM   #2
Spudley
Member
 
Registered: Mar 2003
Location: Berkshire, England.
Distribution: SuSE 10.0
Posts: 299

Rep: Reputation: 32
Code:
result=msgbox("Something that asks user to press Okay/Cancel",1,"Window Title Text")
if(result=1) then resulttext="User pressed OK"
if(result=2) then resulttext="User pressed cancel"
In normal VB (as opposed to VBScript) you can replace all those 1s and 2s with meaningful predefined constants.

More info here:
http://www.w3schools.com/vbscript/func_msgbox.asp
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 04:19 AM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 11:00 AM
send automatic input to a script called by another script in bash programming jorgecab Programming 2 04-01-2004 12:20 AM
linux 9 and java script error - premature end of script header sibil Linux - Newbie 0 01-06-2004 04:21 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration