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

getdatabase() return value

Status
Not open for further replies.

eggy

Technical User
Mar 2, 2001
11
FR
Hi,

in a script, I used :

Set dbbe = SessionBis.getDataBase( server, dbase, False )

and the script must continue if and only if the database exists, si I tried to use :

If Not (dbase Is Nothing) Then
...
End If

But it doesn't work, the script continue even if the database doesn't exist.

Does anybody got an idea on how to do ?

Thanks a lot
 
Hi there eggy

Don't know much about script, but perhaps there's a 'script' option similar to the @IsAvailable formula option? (unless, of course, that is what you've already tried!) Sorry I couldn't be of more help.
 
Well, looking at the code you put in here... if it's not a mis-type, I see this:

You're setting the database that you get, to the object dbbe

However, you're to see if the object dbase has been populated. dbase I'm assuming, is a string value that you're passing to the GetDataBase function

-MoGryph
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top