- Mark Jones
- PowerBuilder
- Thursday, 16 January 2020 07:00 PM UTC
It appears that if the tag property of a datawindow object contains a ? or tab character then when you retrieve the value of the tag using dwo.tag or describe() it embeds the tag in doublequotes.
e.g.
The tag on a datawindow object is set to xxx?xxx.
In the clicked event
string ls_tag
ls_tag=dwo.tag
messagebox("tag",ls_tag)
This will display "xxx?xxx" with double quote characters as part of the string!
Whereas if the tag on the field is xxx-xxx then this will display xxx-xxx without the extra quotes.
I have identified ? and tab characters as causing this problem. I am sure there are other characters. Since the tag is a simple string property there is no reason for this behavior!
I am going to write this up as a bug unless someone can give me a good reason for this being valid.
Mark Jones
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.