variant support

xoxo Member Posts: 34
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.

Comments

  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from Navision Tips & Tricks forum to Navision forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.