主题:新手编程问题!急!!!
各位大虾,小弟刚开始自学POWERBUILDER 不久,编了个东西,就是不能运行,郁闷啊...请各位大虾指点迷津!谢了...
string inf = ""
if rb_sex_boy.checked then
st_sex.text = rb_sex_boy.text
else
st_sex.text = rb_sex_girl.text
end if
if cbx_1.checked then
inf += ", " + cbx_1.text
if cbx_2.checked then
inf += ", " + cbx_2.text
if cbx_3.checked then
inf += ", " + cbx_3.text
if cbx_4.checked then
inf += ", " + cbx_4.text
if inf = "" then
st_inf.text = "<你还没有作选择>"
else
st_inf.text = right(inf,len(inf) - 1)
end if
string inf = ""
if rb_sex_boy.checked then
st_sex.text = rb_sex_boy.text
else
st_sex.text = rb_sex_girl.text
end if
if cbx_1.checked then
inf += ", " + cbx_1.text
if cbx_2.checked then
inf += ", " + cbx_2.text
if cbx_3.checked then
inf += ", " + cbx_3.text
if cbx_4.checked then
inf += ", " + cbx_4.text
if inf = "" then
st_inf.text = "<你还没有作选择>"
else
st_inf.text = right(inf,len(inf) - 1)
end if