Click or drag to resize

GetDefaultDir Function

X#
Return the current SetDefault() setting.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION GetDefaultDir() AS STRING
Request Example View Source

Return Value

Type: String
Remarks
Return the current SetDefault() setting. The string ends with a trailing "\".
Examples
This example uses GetDefaultDir() to display the location of the error log file:
X#
1FUNCTION Start()
2    ? GetDefaultDir()            // NULL_STRING
3    SetDefault("c:\vo\prg")
4    ? GetDefaultDir()            // c:\vo\prg
See Also