Saltar al contenido principal
Versión: 21 BETA

SELECT LOG FILE

SELECT LOG FILE ( logFile )
SELECT LOG FILE ( * )

ParámetrosTipoDescripción
logFileTextNombre del archivo de registro
*OperadorCerrar el archivo de registro actual

Descripción

El comando SELECT LOG FILE crea o cierra el archivo de historial de acuerdo al valor que pase en el parámetro.

En logFile, pase el nombre o la ruta completa del archivo de registro a ser creado. If you only pass a name, the file will be created in the "Logs" folder of the database located next to the database structure file.

If you pass an empty string in logFile, SELECT LOG FILE presents an Save File dialog box, allowing the user to choose the name and location of the log file to be created. Si el archivo se crea correctamente, la variable OK toma el valor 1. De lo contrario, si el usuario hace clic en Cancelar o si el archivo de registro no pudo ser creado, OK toma el valor 0.

Note: The new log file is not generated immediately after execution of the command, but after the next backup (the parameter is kept in the data file and will be taken into account even if the database is closed in the meantime) or a call to the New log file command. Puede llamar al comando BACKUP para activar la creación del archivo de registro.

If you pass * in logFile, SELECT LOG FILE closes the current log file for the database. La variable OK toma el valor 1 cuando se cierra el archivo de registro.

Variables y conjuntos sistema

OK toma el valor 1 si el archivo de historial está correctamente creado, o cerrado.

Ver también

New log file
ON ERR CALL

Propiedades

Número de comando345
Hilo seguro
Modifica las variablesOK, error