不多说,直接上代码:

import win.ui;
/*DSG{{*/
var winform = win.form(text="aardio form";right=426;bottom=118)
winform.add(
button={cls="button";text="清空文本框";left=168;top=71;right=244;bottom=105;z=5};
edit1={cls="edit";text="edit1";left=79;top=31;right=144;bottom=57;edge=1;z=1};
edit2={cls="edit";text="edit2";left=163;top=31;right=228;bottom=57;edge=1;z=2};
edit3={cls="edit";text="edit3";left=238;top=31;right=303;bottom=57;edge=1;z=3};
edit4={cls="edit";text="edit4";left=336;top=31;right=401;bottom=57;edge=1;z=4}
)
/*}}*/

//edit 加入数组
var tab={winform.edit1;winform.edit2;winform.edit3;winform.edit4}

winform.button.oncommand = function(id,event){
//winform.msgbox( winform.button.text );
for(i=1;4;1){
tab[i].text="";
}
}

winform.show()
win.loopMessage();