Skip to content

Commit ef56dfd

Browse files
Removed SYS() function from XSharp.VFP.UI (#1739)
Co-authored-by: Fabrice Foray <[email protected]>
1 parent 62c803b commit ef56dfd

File tree

2 files changed

+8
-33
lines changed

2 files changed

+8
-33
lines changed

src/Runtime/XSharp.VFP.UI/VFPFunctions.prg

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,33 +58,6 @@ FUNCTION WEXIST( windowName AS STRING ) AS LOGIC
5858
VAR hwnd := FindWindow(null, (STRING)windowName)
5959
RETURN ( hwnd != NULL )
6060

61-
FUNCTION Sys(nSetting, uNewValue) As USUAL CLIPPER
62-
LOCAL retVal AS OBJECT
63-
retVal := FALSE
64-
//
65-
SWITCH nSetting
66-
CASE 0
67-
retVal := __GetEnv("LOGONSERVER") + "#" + __GetEnv("USERNAME")
68-
CASE 5 // Default drive or volume.
69-
retVal := GetDefaultDir()
70-
CASE 16
71-
var asm := AppDomain.CurrentDomain.BaseDirectory //System.Reflection.Assembly.GetExecutingAssembly()
72-
// var path := asm:Location
73-
retVal := asm
74-
CASE 987
75-
RETURN FALSE
76-
CASE 2003
77-
retVal := Environment.CurrentDirectory
78-
case 2023
79-
retVal := __GetEnv("TEMP")
80-
END SWITCH
81-
RETURN retVal
82-
83-
INTERNAL FUNCTION __GetEnv(cVariableName as STRING) AS STRING
84-
LOCAL cRetVal AS STRING
85-
cRetVal := Environment.GetEnvironmentVariable(cVariableName)
86-
RETURN cRetVal
87-
8861
// FUNCTION MessageBox(eMessageText As USUAL, cTitleBarText := "" As STRING, nTimeOut := 0 As INT) As INT
8962
// RETURN MessageBox(eMessageText, 0, cTitleBarText, nTimeOut)
9063

src/Runtime/XSharp.VFP/NotSupported.prg

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,10 @@ RETURN NIL
309309
FUNCTION WDOCKABLE( )
310310
RETURN NIL
311311

312-
[Obsolete( "This function will not be supported" )];
313-
FUNCTION WEXIST( )
314-
RETURN NIL
312+
// Implemented in XSharp.VFP.UI
313+
// [Obsolete( "This function will not be supported" )];
314+
// FUNCTION WEXIST( )
315+
// RETURN NIL
315316

316317
[Obsolete( "This function will not be supported" )];
317318
FUNCTION WFONT( )
@@ -361,9 +362,10 @@ RETURN NIL
361362
FUNCTION WTITLE( )
362363
RETURN NIL
363364

364-
[Obsolete( "This function will not be supported" )];
365-
FUNCTION WVISIBLE( )
366-
RETURN NIL
365+
// Implemented in XSharp.VFP.UI
366+
// [Obsolete( "This function will not be supported" )];
367+
// FUNCTION WVISIBLE( )
368+
// RETURN NIL
367369

368370

369371
/*

0 commit comments

Comments
 (0)