Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Trace.WriteLine

Adds line to trace logging.

Component Version macOS Windows Linux Server iOS SDK
Trace 9.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Trace.WriteLine" { ; Parameters... } )   More

Parameters

Parameter Description Example Flags
Parameters... The parameters to print to the trace line.
Can be several parameters in various data types.
"Hello" Optional

Result

Returns OK or error.

Description

Adds line to trace logging.

This function takes variable number of parameters. Pass as much parameters as needed separated by the semicolon in FileMaker.
Please repeat Parameters parameter as often as you need.

Examples

Add trace log entry:

MBS("Trace.WriteLine"; "Hello: "; 123)

Trace an export field contents error:

Export Field Contents [ Kontakte::Foto ; “$path” ; Create folders: Off ]
Set Variable [ $r ; Value: Let ( [
  e = Get(LastError);
  r = If( e ≠ 0; MBS("Trace.WriteLine"; "Export all field contents: "; e); "")
]; r ) ]

Log last error:

Set Variable [ $r; Value: MBS( "Trace.WriteLine"; "Lasterror: "; Get(LastError)) ]

Release notes

  • Version 9.1

Blog Entries

This function is free to use.

Created 14th February 2019, last changed 7th November 2024


Trace.SetWithTimes - Twain.Acquire