我正在使用Coldfusion。我想將兩個字符串連接成同一個結構鍵,但我一直收到「無法將x轉換爲布爾值」的錯誤。如何連接兩個字符串並將它們存儲到同一個結構鍵中
例如:
<cfset myStruct.string1 = nodes[1].string1.XmlText>
<cfset mystruct.string2 = nodes[1].string2.XmlText>
無論以下工作
<cfset myStruct.concatendatedSring = nodes[1].string1.XmlText AND nodes[1].string2.XmlText>
<cfset myStruct.concatendatedSring = myStruct.string1 AND myStruct.string2>
的爲什麼沒有方法的工作?
Y,沒錯。 – ppshein 2010-09-02 01:16:32