Hello,
I'm trying to change the custom dateTime format according to a variable, from a DateTimeControl.
code:
var SysFormatStruct = Interop.Allocate(20);
SysFormatStruct.WriteString(0, _dateFormat, true); //_dateFormat == "MM-dd-yyyy" -> Line 452
when i run it i get
quote:
Error: Invalid procedure call or argument.
Line: 452. Code: -2146828283.
Any ideas what i'm doing wrong here?
Thanks.