Log In    |    Knowledge Base    |    4D Home
Tech Tip: New Log File command in 4D 2004.3
PRODUCT: 4D | VERSION: 2004.3 | PLATFORM: Mac & Win
Published On: January 20, 2006

Starting with 4D 2004.3, there is a new command that returns the long name of the current log file of the opened database. The long name includes the complete pathname of the file including the name of the log file. The Log File command does not require any parameters.

Log File -> String

If the database is operating without a log file, the command returns an empty string and the system variable OK is set to 0.

If the database operates with a log file, the system variable OK is set to 1. The pathname returned by the command is expressed with the syntax of the current platform.

Note: If you execute this command from a 4D Client machine, only the log file name is returned, not the long name.