because you mentioned the preprocessor, i gave it a try - and it worksrobert wrote:Thomas,
I think we can manage to add these function for the FoxPro language without having to use preprocessor tricks.
![Smile :-)](https://dt9qzg9h465rt.cloudfront.net/phpBB3/images/smilies/icon_e_smile.gif)
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