AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de WINDEV
  • Use conditions according to the platforms
  • Closing the trace window
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Otros
Procedimientos almacenados
Advertencia
A partir de la versión 17 (78), StartTrace se conserva por motivos de compatibilidad. Esta función ha sido reemplazada por TraceStart.
Opens the trace window or saves the trace information in a text file.
Remarks:
  • TraceStart has no effect if the trace window is already opened.
  • TraceStart is optional. The first call to Trace or to TraceBuild automatically opens the trace window.
Ejemplo
Reportes y Consultas
// Ouvre la fenêtre de trace
TraceStart()
...
// Ecrit dans la fenêtre de trace
Trace("Résultat du calcul: " + ResCalcul)
Reportes y Consultas
// Désactiver les appels à la fonction Trace
TraceStart(trDisable)
...
Trace("Résultat du calcul: " + ResCalcul) // Fonction Trace sans effet
Reportes y Consultas
// Enregistre les informations contenues dans 
// la fenêtre de trace dans le fichier "C:\Trace\MonFichier.txt"
TraceStart(trFile, "C:\Trace\MonFichier.txt")
...
Trace("Résultat du calcul: " + ResCalcul) 
// Aucune fenêtre de trace n'est affichée
// Cette information sera enregistrée dans le fichier "C:\Trace\MonFichier.txt"
Sintaxis
TraceStart([<Characteristic> [, <Trace file>]])
<Characteristic>: Optional constant
Characteristics of trace:
Novedad versión 2024
trConsole
The trace is redirected to the console.
trCreationClears the trace file.
trDisableAll the calls to Trace will be ignored.
trFileThe trace window will not be displayed anymore and the information found in the trace window will be saved in the file named <Trace file>.

trTopMostThe trace window will be displayed above all the system windows.
trWindow
(Default value)
The trace window is displayed in the upper-left corner of the screen.


trWindow + trFileThe trace window will be displayed and the content of the trace window will also be saved in the file named <Trace file>.
<Trace file>: Optional character string
Name and full path of the file where the information found in the trace window will be saved. If this parameter is not specified, the trace file will be created at the root of the "C" drive and its name will have the following format "Trace_<ProjectName>.txt".
Observaciones

Use conditions according to the platforms

Closing the trace window

TraceEnd is used to close the trace window.
If the trFile constant is specified, TraceEnd stops saving to the trace file.
Componente: wd290vm.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Video Trace
https://youtu.be/scI5wQu-jXk
//
fDelete("C:\TEMP\ARQUIVO.TXT") // ELIMINA ARQUIVOS CASO JA EXISTA
TraceStart(trFile+trWindow,"C:\TEMP\ARQUIVO.TXT")
FOR EACH cliente // ESTOU PERCORRENDO A TABELA CLIENTE // I AM PERCURRING THE CLIENT TABLE // Je passe à la table des clients
Trace(cliente.id_cliente+"|"+cliente.razao_social_nome+"|")
END
TraceEnd() // FINALIZANDO O TRACE // FINISHING THE TRACE // FINITION DE LA TRACE
ShellExecute("C:\TEMP\ARQUIVO.TXT")
amarildo
30 12 2018

Última modificación: 24/05/2024

Señalar un error o enviar una sugerencia | Ayuda local