2
請線索,這在福利局PowerBuilder的:試圖設置CURRENTITEM的menuCascade
我得設置菜單級聯它的對象類型的菜單。我可以參考菜單中的項目,我甚至可以將項目設置爲啓用或可見。但我不能做的是設置菜單的currentItem屬性。我在屏幕打開的事件中有這樣的代碼。
menu qq
qq = this.menuid.item[3].item[19]
qq.visible = true //OK
qq.item[3] = qq.item[3] //OK
qq.currentitem = qq.item[3] //Error during the compile
// The line above gives the following error
// C0019: Incompatible property currentitem for type menu
我敢肯定這是一個簡單的修復,但PowerBuilder是不是我的朋友還沒有
非常感謝 – telesphore4 2009-11-09 22:44:15