Does it help if you declare the variable as a text variable firs before you read the value into?
For example if your text variable is 'string_name' then declare it as a string variable before reading the value in.
string_name = ""
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11