//string col
//long l[3]
//col = dwo.name
//col = parent.dw_1.describe(col + ".tag")
//
//if trim(col) = "" then
// return
//end if
//l[1] = pos(col,",")
//l[2] = long(left(col,l[1] - 1))
//l[3] = long(right(col,len(col) - l[1]))
//
//if ((l[2] <= 0) or (l[3] <= 0)) then
// return
//end if
//
////if w_sqws_main.menuid.item[l[2]].titlebar[l[3]].y = true and w_sqws_main.menuid.item[l[2]].titlebar[l[3]].visible = true then
//// w_sqws_main.menuid.item[l[2]].titlebar[l[3]].event clicked()
////else
//// messagebox("","無權操作此模塊")
////end if
////
//return
error c0019:incompatible property titlebar for type menu
error c0003:condition for if statement must be aboolean
uj5u.com熱心網友回復:
item[l[2]],不能這么寫!
uj5u.com熱心網友回復:
那該怎么寫呢?uj5u.com熱心網友回復:
暈,l[2]竟然變數,你看那if中兩個條件直接取出是什么值吧,提示屬性矛盾
uj5u.com熱心網友回復:
提示錯誤!uj5u.com熱心網友回復:
那就是這部分有問題,不用變數直接寫!uj5u.com熱心網友回復:
if w_sqws_main.menuid.item[l[2]].titlebar[l[3]].y = true and w_sqws_main.menuid.item[l[2]].titlebar[l[3]].visible = true thenmenu物件沒有titlebar屬性,
所以造成第一個error無效的屬性
error c0019:incompatible property titlebar for type menu
由于第一個error又引發了if條件的error條件必須是Boolean型:
error c0003:condition for if statement must be aboolean
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/94921.html
標籤:腳本語言
下一篇:求助 TXT檔案處理
