i am really getting frustrated with the text-stuff. It seems that, whatever i want do, is possible with strings but not with texts...
I want to get a text (text of a dialogitem) minus it's last letter. Substring-Functions aren't working for texts, converting doesn't work. Any idea if this is possible?
There's a bigger difference between text and string than just formatting. Text is the raw data of characters, while string is formatted based on localization. ATM you cannot convert text to string because of these localization issues, and I don't think Blizzard is planning on implementing this any time soon.
Hey guys,
i am really getting frustrated with the text-stuff. It seems that, whatever i want do, is possible with strings but not with texts... I want to get a text (text of a dialogitem) minus it's last letter. Substring-Functions aren't working for texts, converting doesn't work. Any idea if this is possible?
Thx in advantage.
Bump. :(
@DialogGeek: Go
I dont think you can unless you can convert text to string. Basically text is a formatted string so for example you have a text/string like this:
"<h>Highlight</h>"
If remove the last character for that string you will break the format.
@progammer: Go
There's a bigger difference between text and string than just formatting. Text is the raw data of characters, while string is formatted based on localization. ATM you cannot convert text to string because of these localization issues, and I don't think Blizzard is planning on implementing this any time soon.
@DialogGeek: Go
You can, however, convert string to text, so the following should work (example by displaying text):
If you need text, tale everything inside the Display parentheses. If you need String, take everything inside the Text parentheses.