出现:“THISFORM只能在方法程序中使用错误!”提示,但忽略后能正确保存Excel文件能。如何纠正?请师傅们建言,感激!
* 设计一个右键弹出式菜单,让用户可以选择导出到Excel或XML LOCAL LHASdATA AS Boolean LOCAL CSELECT AS String CSELECT="" IF THIS.ColumnCount>0 THEN LHASdATA=.T. ENDIF Define Popup shtcut SHORTCUT Relative From Mrow(),Mcol() Define Bar 1 Of shtcut Prompt "导出到XML" ; SKIP For LHASdATA=.F. Define Bar 2 Of shtcut Prompt "导出到EXCEL" ; SKIP For LHASdATA=.F. ON SELECTION POPUP shtcut CSELECT=PROMPT( ) Activate Popup shtcut DO CASE CASE CSELECT="导出到XML" MESSAGEBOX("抱歉,[导出到XML格式]功能尚未开发完毕,请等待后续版本。",64,"提示:") CASE CSELECT="导出到EXCEL" this.grid2excel OTHERWISE ENDCASE