Hi Jörg,
Thanks for your reply
There is a line like you mentioned but with slightly different name, i.e. GetCurrentDB instead of GetCurrentDatabase
But the function code is totally different:
SessionInfo.SETRANGE(SessionInfo."My Session",TRUE);
IF SessionInfo.FIND('-') THEN
DBName := SessionInfo."Database Name";
IF (STRPOS(DBName,'.') <> 0) OR
(STRPOS(DBName,'-') <> 0) THEN
DBName := '[' + DBName + ']';
EXIT(DBName);
Using Debugger I can assure you that DBName variable contains correct database name.
Is there any other information I can supply you to make things clearer?
Regards,
David
PS. Thanks for the URL to the article regarding SIFT, I'm reading it now...