winform里面表示如何显示的?
import win.ui;/*DSG{{*/
var winform = win.form(text="XX软件";right=759;bottom=469)
winform.add(
button={cls="button";text="查询";left=580;top=48;right=705;bottom=102;z=2};
numberx={cls="edit";text="输入x";left=110;top=46;right=558;bottom=98;edge=1;multiline=1;z=1};
showx={cls="edit";left=111;top=123;right=725;bottom=414;edge=1;multiline=1;z=3}
)
/*}}*/
var x={"a"="a";"b"=5;"c"=7;"d"= "d";"e"={"1"=55,5,8};}
var i =0 ;
for(i=1;50;1){
winform.showx.text=winform.showx.text+"-"
}
winform.button.oncommand = function(id,event){
var numberx = winform.numberx.text;
winform.showx.text = x;
}
winform.showx.oncommand = function(id,event){
}
winform.show();
win.loopMessage();
//如上代码,输入a,bc,d都能得到正确的值,输入e得到table: 031CE7C8,我想得到{"1"=55,5,8},这个如何操作?win.msgbox()函数可以实现,问题是会弹出一个窗口
import win.ui;
/*DSG{{*/
var winform = win.form(text="XX软件";right=759;bottom=469)
winform.add(
button={cls="button";text="查询";left=580;top=48;right=705;bottom=102;z=2};
numberx={cls="edit";text="输入x";left=110;top=46;right=558;bottom=98;edge=1;multiline=1;z=1};
showx={cls="edit";left=111;top=123;right=725;bottom=414;edge=1;multiline=1;z=3}
)
/*}}*/
import console;
var x={"a"="a";"b"=5;"c"=7;"d"= "d";"e"={"1"=55,5,8};}
var i =0 ;
for(i=1;50;1){
winform.showx.text=winform.showx.text+"-"
}
winform.button.oncommand = function(id,event){
var numberx = winform.numberx.text;
winform.showx.text = type(x)=='table'?table.tostring(x):x;
}
winform.showx.oncommand = function(id,event){
}
winform.show();
win.loopMessage();
页:
[1]