NotesUIDatabase.Close in R5

Hello!

I’ve a problem with the using from my Application on a R5 Client. I will create a popup page with the information: Don’t use this App with Client < R6! And after the click to close, the database close. In R6 we have the new NotesUIDatabase.Close! I need the same functionfor the R5 Client.

The Notes C API habe a solution for this with the function

NSFDbClose

But it not works in my application. I’Ve the following script:

Call OSPathNetConstruct(0, Source.Database.Server, Source.Database.FilePath, pathName)

ReturnCode = NSFDbOpen(pathName, hDBl)

If ReturnCode = 0 Then

ver = s.NotesBuildVersion

If ver < 190 Then

flag = uiws.DialogBox(“LinkPage” , True , True, True , True , True, True , Source.Database.Title, doc, True)

NSFDbClose(hDBl)

End If

End If

The ReturnCode is 0

What is my problem?

Thx

Frank

Subject: NotesUIDatabase.Close in R5

How’s about this very simple solution:

@If(@Version < “190”;

    @Return(@Do(@Command([FileCloseWindow]); @Prompt([Ok]; "Wrong Lotus Notes Version (" + @Version + ")"; "You need to use Lotus Notes R6 or higher for this application!"))); "")

Subject: RE: NotesUIDatabase.Close in R5

Hello!

Thx, for this formular, but it is not the solution … after the prompt the database is open. The FileCloseWindow close the PRompt not the database.

Regards Frank