Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3768

ToText deprecated

$
0
0

u.name is a string property of a Class represented by “u”

Porting to the new API, the old code was:

elseif u.name.toText = "Blücher" then

Xojo does not accept changing it to:

elseif u.name.toString = "Blücher" then

If comparing the strings directly:

elseif u.name = "Blücher" then

the strings don’t match. This issue occurs after saving/loading from an SQLite database. Using toText again and ignoring the deprecated warning makes it work. This is likely an encoding conflict with the “ü” character probably…

21 posts - 6 participants

Read full topic


Viewing all articles
Browse latest Browse all 3768

Trending Articles