Powerbuilder - 尝试使用单引号引用一串长字符串(“)

时间:2018-06-04 16:16:29

标签: powerbuilder datawindow

importstring(ls_string) 

该字符串是制表符分隔的文本,具有单引号。当字符串导入DataWindow时,此单引号会导致错误。

我尝试用~"\"替换所有出现的双引号,但两者都不起作用。

您认为潜在的解决方法是什么?

感谢。

1 个答案:

答案 0 :(得分:2)

The datawindow escape character for a single quote (') is three tilde characters and then the single quote (which escapes the single quote as well as the tilde itself).

This makes the entry [O'Connor] look like [O~~~'Connor].

In the PB help this is under the heading: 'Nested strings and special characters for DataWindow object properties'