SetLocale Function

Action

Sets the value of the 4Test locale.

Syntax

sLocale = SetLocale (sLocale)
Variable Description
sLocale Specifies the implementation-defined 4Test locale. To specify the native locale, use an empty string (""). STRING

Returns

A string for the new locale or NULL if the request cannot be honored.

Notes

This capability gives the tester the ability to control how certain 4Test functions format, sort, and compare number, string, currency, and date/time information. It should be noted that SetLocale does not set the Silk Test Classic program locale.

The 4Test locale is a Posix compliant locale.

Example

Set the 4Test locale to the value of the user locale of the machine on which the application under test is executing.

SetLocale(SYS_GetLocale())