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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with this test script

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
What is wrong with this script?

dim ptable
set wshell = createobject("wscript.shell")
do
ptable= inputbox("Enter table to truncate","Truncate Database",vbokcancel)
if isempty(pversion) then
msgbox("Please enter valid table to truncate")
else
wscript.quit
end if
loop while isempty(ptable)

When I click cancel, it gave the "please enter ...." and when I click on Ok and the inpubox is empty, it ends without looping.
 
is that cos your quitting from the wscript and not breaking from the loop ?

I dunno, I've never seen code like this before.
 
What is pversion you are using for your conditional if statement? BDC.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top