because you mentioned the preprocessor, i gave it a try - and it works .robert wrote:Thomas,
I think we can manage to add these function for the FoxPro language without having to use preprocessor tricks.
Code: Select all
#TRANSLATE Date ( <year> , <month> , <day> ) => @@Date( <year>, <month>,<day> )
#TRANSLATE Date ( ) => @@Date()
FUNCTION @@DATE(tnYear AS INT, tnMonth AS INT, tnday AS INT) AS DATE
RETURN ConDate ( (DWORD) tnYear , (DWORD) tnMonth , (DWORD) tnday )
FUNCTION @@DATE() AS DATE
RETURN Today()
FUNCTION Start() AS VOID
? Date()
? Date ( 2000 , 12 , 1 )
RETURN
FUNCTION DATE(tnYear AS INT, tnMonth AS INT, tnday AS INT) AS DATE
RETURN ConDate ( (DWORD) tnYear , (DWORD) tnMonth , (DWORD) tnday )
FUNCTION DATE() AS DATE
RETURN Today()
The abilities of the preprocessor are impressive !
regards
Karl-Heinz