Click or drag to resize

GetDefault Function

Return the X# default drive and directory.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.5
Syntax
 FUNCTION GetDefault() AS STRING

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