Click or drag to resize

GetDefault Function

X#
Return the X# default drive and directory.

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

Return Value

Type: String
Remarks
Examples
This example uses GetDefault() to display the default drive:
X#
1FUNCTION Start
2    ? GetDefault()            // NULL_STRING
3    SetDefault("c:\vo\prg")
4    ? GetDefault()            // c:\vo\prg\
5    RETURN TRUE
See Also