I found interesting behavior of PromptOK when the string contains -- or ++.
when -- is in the text then "Error: Not in table:" message appears on the message box.
when ++ is in the text then there is empty editbox on the message box.
Is this "normal"? or bug in the qt below TheIde?
(I have 1252 on win).
dolik.rce Messages: 1791 Registered: August 2008 Location: Czech Republic
Ultimate Contributor
g6b0r wrote on Fri, 28 August 2009 14:13
hello,
I found interesting behavior of PromptOK when the string contains -- or ++.
when -- is in the text then "Error: Not in table:" message appears on the message box.
when ++ is in the text then there is empty editbox on the message box.
Is this "normal"? or bug in the qt below TheIde?
(I have 1252 on win).
gabor
Hi gabor,
It's not a bug, it's a feature PromptOK (and many other controls in U++) allows to use formated text in QTF format. In this format a lot of characters including + and - have some special meaning. If you want to type just ++ or -- you have to escape them by apostrophe:
PromptOK("Ultimate'+'+");
or escape whole group of characters using byte 1:
PromptOK("\1whatever--\1");
For more information about QTF see it's manual.
By the way: There is no qt below theide or u++