Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with UDTs and Strings / PSA
#2
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.
Reply


Messages In This Thread
RE: Issue with UDTs and Strings / PSA - by ahenry3068 - 07-27-2024, 08:32 AM
RE: Issue with UDTs and Strings / PSA - by luke - 07-27-2024, 11:01 AM
RE: Issue with UDTs and Strings / PSA - by bplus - 07-27-2024, 02:57 PM
RE: Issue with UDTs and Strings / PSA - by luke - 08-09-2024, 01:03 PM
RE: Issue with UDTs and Strings / PSA - by Pete - 08-09-2024, 02:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  CIRCLE issue TerryRitchie 2 739 10-12-2024, 09:13 PM
Last Post: SMcNeill
  Minor Issue with Audio justsomeguy 8 1,896 08-15-2024, 08:02 PM
Last Post: a740g
  INKEY$ doesn't work with fixed length strings justsomeguy 30 5,762 08-01-2024, 05:13 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)