04-12-2023, 03:50 PM
I've run into trouble using UDT's when I assume after a ReDim _Preserve that the new values are 0 or "" for numbers or strings.
Supposedly the numbers and fixed stringsĀ were fixed according to Luke if I recall but variable length strings had to initilized to "" otherwise they pick up garbage from the string pointers to uncleared meomory, something like that.
@TerryRichie could it be possible you were assuming new variableĀ length strings were "" after a ReDim _Preserve ?
Perhaps also, whatever was fixed back when Luke checked it became unfixed with all the updates made since, like with assumed 0 of new integers created with ReDim _preserve?
I will write some test code...
Supposedly the numbers and fixed stringsĀ were fixed according to Luke if I recall but variable length strings had to initilized to "" otherwise they pick up garbage from the string pointers to uncleared meomory, something like that.
@TerryRichie could it be possible you were assuming new variableĀ length strings were "" after a ReDim _Preserve ?
Perhaps also, whatever was fixed back when Luke checked it became unfixed with all the updates made since, like with assumed 0 of new integers created with ReDim _preserve?
I will write some test code...
b = b + ...