What is txtTime.text ?
A text control field of course.
What kind of "text control field". Give us the class name, at least!
Also, you may try to insert a line with:
ShowMesageFmt('"%s"', [txtTime.text]);to ascertain whether it really contains something.
Finally, where did you read about this "bug"? We can't know if there really was a bug and, if so, whether it has been quashed without knowing what you're talking about.
I ask because I've been using various TCustomEdit descendants and other controls with
Text properties for years (including using Length and LengthUTF8) and I've never seen anything remotely related to what you're supposedly seeing.