ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Windows functions / Miscellaneous WINDEV functions
  • Using TraceBuild in the multilingual applications
  • Use conditions according to the platforms
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Displays a customizable message in the trace window opened in parallel with the current window.
Remark: Like Trace, TraceBuild can be used in the development phase to check that the program is running correctly. In the editor, the "Debugger trace" pane displays the information found in the trace window as well as the full text of errors that occurred.
Example
// Display an error message in the trace window
TraceBuild("The customer code %1 does not exist.", nCustomerCode)
Syntax
TraceBuild(<Initial string> [, <Parameter 1> [... [, <Parameter N>]]])
<Initial string>: Character string
Character string to display. This string contains optional parameters (%1 to %n). To display the % character, this character must be typed twice (%%).
<Parameter 1>: Optional character string
First parameter that will be inserted into the formatted character string.
<Parameter 1> will replace the %1 character, <Parameter 2> will replace the %2 character, etc.
The number of specified parameters must be equal to or greater than the number of parameters used in <Initial string>.
If <Initial string> contains more parameters, the additional parameters will be replaced with empty strings.
<Parameter N>: Optional character string
Nth parameter that will be inserted into the formatted character string.
<Parameter 1> will replace the %1 character, <Parameter 2> will replace the %2 character, etc.
The number of specified parameters must be equal to or greater than the number of parameters used in <Initial string>.
If <Initial string> contains more parameters, the additional parameters will be replaced with empty strings.
Remarks

Using TraceBuild in the multilingual applications

In a multilingual application, TraceBuild can be used to simplify the translation process:
  • the translator translates the message by using the "%1", "%2" characters, ... at the relevant location according to the language.
  • the optional characters can be replaced in all the supported languages.

Use conditions according to the platforms

Component: wd290vm.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help