xsharp.eu • date member in VOStruct
Page 1 of 1

date member in VOStruct

Posted: Sun Apr 11, 2021 5:44 am
by wriedmann
Hi Robert,
in code I have to migrate I have found a VOStruct that has a date member.
The X# compiler gives me a

Code: Select all

error XS9027: VoStruct member type must be one of the following: bool, byte, short, int, long, char, sbyte, ushort, uint, ulong, float, double, ptr, psz or vostruct
This structure is used in a lot of places so it is not easy to replace.
And since this is not my code, please don't ask me why there was not used a class instead of a struct.
Wolfgang

date member in VOStruct

Posted: Sun Apr 11, 2021 8:43 am
by robert
Wolfgang,
I am not sure what the DATE is used for, but you can probably replace it with a DWORD and then when reading / writing cast the DATE to a DWORD or back.
I'll see if we can add support for DATE members in the next build.

Robert

date member in VOStruct

Posted: Sun Apr 11, 2021 8:50 am
by Chris
Robert,

I asked Wolfgang to post this question here. I had also faced this issue and thought about using a DWORD, but at the end simply replaced the VOSTRUCT with a normal .Net structure. But I see this issue is more common that I thought, so I was also wondering if it is even possible to make the compiler allow DATEs. Since you say this is a possibility, I will log this as feature request.

date member in VOStruct

Posted: Sun Apr 11, 2021 11:18 am
by wriedmann
Hi Robert, hi Chris,
thank you very much for all your efforts!
Wolfgang