public enum DateCountry
member American := 1
member Ansi := 2
member British := 3
member French := 4
member German := 5
member Italian := 6
member Japanese := 7
member USA := 8
end enum
FUNCTION SetDateCountry( enumCountry AS DateCountry ) AS DWord
RETURN SetDateCountry( (DWORD) enumCountry )
I think those DEFINEs were simply forgotten. Yeah, using an ENUM is much nicer, only problem is that for existing code to compile, we need to support the DEFINEs...
Karl-Heinz ,
We will add the defines and the enum. We can also add the overload that takes an enum as well.
We will map the defines to the enum members to make sure that they have the same value. Just like what we have done for the various SET defines, like you can see in https://github.com/X-Sharp/XSharpPublic ... numSet.prg
Thanks for the suggestion.
Robert
XSharp Development Team
The Netherlands
robert@xsharp.eu