I have some functions working on variant types and there is the problem of getting them to work with datetime. There appears to be no way to discover whether a variant value is a datetime. Any tricks to do that? Also it would be nice to know if the next NAV will allow one to return a variant type.
I tried inspecting a variant argument that was injected with a datetime. It tested neither as a date nor as a time. Then I tried injecting it with a DATI2VARIANT value and then it tested as a time, but not a value.
Any way around this mess? I just want to know if the value is a datetime or not. One function returns the corresponding xs:typename (xs:boolean, xs:integer, etc) for the type of a value, but that doesn't work for xs:datetime right now.
0
Comments
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!