How do display output message without using msgbox function?
Answers were Sorted based on User's Feedback
Answer / manjunathareddy
Set oShell=CreateObject("WScript.Shell")
oShell.Popup "Pop up window Automatically closes within
4 seconds",4,"VbScript"
| Is This Answer Correct ? | 5 Yes | 0 No |
Actually this method is supported only with VBScript files.
while MsgBox used in VBScript as well as in other tool and
languages.
MsgBox pop the output message while "WScript.echo" execute
the whole Script in "window sript host" environment and Pop
up the OutPut.
Example :-
MsgBox "May name is"
WScript.Echo "My Name is"
Both having the same output bit via different path
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sujatha
how do use these (" wsript.echo" )method explain ?
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shashankshekharraj
With the help of InputBox also , otherwise the second
option is "Wsript.Echo".
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / thachnan
if we want to display the output message or value without using "msgbox".we can use "print" functions.
ex:
a=10
b=15
c=a+b
print c
| Is This Answer Correct ? | 0 Yes | 0 No |
How to add actions in driver script to run those actions in QTP?
How can you destroy an object in vbscript?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
Mention what if you do not specify anything when you call a procedure?
wat is the com(common object model)object for mozilla firefox???????plz if any one know the exact answer....reply me......
How do I check that the names in a weblist are correct e.g in flight application the names of item are Denver, paris,London, etc. How do I ensure the correct item is displayed from the list after doing item count ?
What are the rules to name variable in vbscript?
Mention how to assign a date value to a variable?
How to use Text file (Notepad) as ur data source in QTP? Can u please provide some function code for it?
How can I write HTML text to the window in VB Script?
write a vb script to generate fibonnaci numbers