Click or drag to resize

SetTimeSep Function (DWord)

X#
Change the setting that determines the separation character to be used in time strings.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION SetTimeSep(
	dwNewSetting AS DWORD
) AS DWORD
Request Example View Source

Parameters

dwNewSetting
Type: DWord
The ASCII code for a character to be used as the time string separator (for example, periods or dashes).
The initial default is a colon (:), which is ASCII code 58. (Use GetTimeSep() to get the current setting.)

Return Value

Type: DWord
The previous setting.
Remarks
Examples
This example changes the way times are displayed from 24:00:00 to 24.00.00:
X#
1FUNCTION Start()
2    SetTimeSep(Asc("."))
3    QOut(Time())            // 24.00.00
See Also