Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/Runtime/XSharp.VFP.Tests/MiscTests.prg
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,19 @@ BEGIN NAMESPACE XSharp.VFP.Tests
Assert.True(nLine > 0)
END METHOD

[Fact, Trait("Category", "UI")];
METHOD IsPenTest() AS VOID
Assert.False(IsPen())
END METHOD

[Fact, Trait("Category", "UI")];
METHOD ImeStatusTest() AS VOID
// No IME installed
Assert.Equal(0, ImeStatus())
Assert.Equal(0, ImeStatus(0))
Assert.Equal(0, ImeStatus(1))
END METHOD

END CLASS

END NAMESPACE
12 changes: 12 additions & 0 deletions src/Runtime/XSharp.VFP/MiscFunctions.prg
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,15 @@ FUNCTION IsNull(eExpression AS USUAL) AS LOGIC

RETURN System.Convert.IsDBNull(eExpression)
ENDFUNC

/// <include file="VFPDocs.xml" path="Runtimefunctions/imestatus/*" />
[FoxProFunction("IMESTATUS", FoxFunctionCategory.UIAndWindow, FoxEngine.UI, FoxFunctionStatus.Full, FoxCriticality.Low)];
FUNCTION ImeStatus(nExpression := 0 AS LONG) AS LONG
RETURN 0
ENDFUNC

/// <include file="VFPDocs.xml" path="Runtimefunctions/ispen/*" />
[FoxProFunction("ISPEN", FoxFunctionCategory.EnvironmentAndSystem, FoxEngine.UI, FoxFunctionStatus.Full, FoxCriticality.Low)];
FUNCTION IsPen() AS LOGIC
RETURN FALSE
ENDFUNC
15 changes: 0 additions & 15 deletions src/Runtime/XSharp.VFP/ToDo-HI.prg
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,6 @@
//
#pragma options("vo15", on)


/// <summary>-- todo --</summary>
/// <include file="VFPDocs.xml" path="Runtimefunctions/imestatus/*" />
[FoxProFunction("IMESTATUS", FoxFunctionCategory.UIAndWindow, FoxEngine.UI, FoxFunctionStatus.Stub, FoxCriticality.Low)];
FUNCTION ImeStatus( nExpression ) AS LONG
THROW NotImplementedException{}
// RETURN 0

/// <summary>-- todo --</summary>
/// <include file="VFPDocs.xml" path="Runtimefunctions/indbc/*" />
[FoxProFunction("INDBC", FoxFunctionCategory.Database, FoxEngine.WorkArea, FoxFunctionStatus.Stub, FoxCriticality.Medium)];
Expand Down Expand Up @@ -48,13 +40,6 @@ FUNCTION IsMemoFetched( uField , uArea) AS LOGIC
THROW NotImplementedException{}
// RETURN FALSE

/// <summary>-- todo --</summary>
/// <include file="VFPDocs.xml" path="Runtimefunctions/ispen/*" />
[FoxProFunction("ISPEN", FoxFunctionCategory.EnvironmentAndSystem, FoxEngine.UI, FoxFunctionStatus.Stub, FoxCriticality.Low)];
FUNCTION IsPen( ) AS LOGIC
THROW NotImplementedException{}
// RETURN FALSE

/// <summary>-- todo --</summary>
/// <include file="VFPDocs.xml" path="Runtimefunctions/istransactable/*" />
[FoxProFunction("ISTRANSACTABLE", FoxFunctionCategory.Database, FoxEngine.WorkArea, FoxFunctionStatus.Stub, FoxCriticality.High)];
Expand Down
47 changes: 3 additions & 44 deletions src/Runtime/XSharp.VFP/functionsToImplement.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,84 +42,50 @@ A table must be written like this:
In theory you can also include tables in the <param> tags but that usually does not produce very nice documentation.
We think it is better to include the tables in the <remarks> section and to refer to that section in the <param> tag.

List of functions that need work:
=================================
List of functions that need work (58 remaining):
================================================

ACLASS( )
ADATABASES( )
ADBOBJECTS( )
AGETFILEVERSION( )
ALINES( )
AMEMBERS( )
ANETRESOURCES( )
APRINTERS( )
ASESSIONS( )
ASTACKINFO( )
ASUBSCRIPT( )
AT_C( )
ATAGINFO( )
AUSED( )
BINTOC( )
CANDIDATE( )
CAST( )
COMPOBJ( )
COMPILE()
CPCONVERT( )
CREATEOBJECTEX( )
CREATEOFFLINE( )
CTOBIN( )
CTOT( )
CURSORGETPROP( )
CURSORSETPROP( )
CURSORTOXML( )
CURVAL( )
DESCENDING( )
DIFFERENCE( )
DisplayPath( )
DODEFAULT( )
DROPOFFLINE( )
EXECSCRIPT( )
FIELD( ) // needs testing, no caption yet (needs DBC support)
FLDLIST( )
FONTMETRIC( )
FORCEEXT( )
FORCEPATH( )
FULLPATH( )
GETAUTOINCVALUE( )
GETCP( )
GETDIR( )
GETFILE( )
GETCURSORADAPTER( )
GETFLDSTATE( )
GETFONT( )
GETNEXTMODIFIED( )
GETOBJECT( )
GETPICT( )
GETPRINTER( )
GETRESULTSET( )
GETCURSORADAPTER( )
IMESTATUS( )
INDBC( )
INDEXSEEK( )
INPUTBOX( )
ISBLANK( )
ISEXCLUSIVE( )
ISMEMOFETCHED( )
ISNULL( )
ISPEN( )
ISTRANSACTABLE( )
KEYMATCH( )
LINENO( )
LOADPICTURE( )
LOCFILE( )
LOCK( )
LOOKUP( )
MAKETRANSACTABLE( )
NEWOBJECT( )
NORMALIZE( )
OLDVAL( )
PCOL( )
PRIMARY( )
PROGRAM( )
PROW( )
PRTINFO( )
PUTFILE( )
Expand All @@ -129,18 +95,11 @@ REQUERY( )
RGBSCHEME( )
SAVEPICTURE( )
SCHEME( )
SEEK( )
SETFLDSTATE( )
SETRESULTSET( )
SQLIDLEDISCONNECT( )
STRCONV( )
STREXTRACT( )
SYSMETRIC( )
TABLEREVERT( )
TABLEUPDATE( )
TTOC( )
TXNLEVEL( )
TXTWIDTH( )
VARTYPE( )
XMLTOCURSOR( )
XMLUPDATEGRAM( )
Loading