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.2a
Syntax
 FUNCTION GetDefault() AS STRING
View Source

Return Value

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