07-27-2024, 08:32 AM
I don't know how to fix this besides using fixed length strings and that is what I would use. If you need to know the actual length of the data include a length variable in the UDT. I can tell you a little about what is going on. A variable length string in a UDT is actually just a pointer. The actual string data resides elsewhere. A udt itself MUST be fixed length or the compiler doesn't know how to allocate it.