qzz749791 发表于 2007-4-24 15:42
怎么能把两个值加一起呢
我已经把ls_aaa 的值取出来了,然后用ls_aaa + strValue 得到ls_bbb <BR>可为什么ls_bbb 还是只等于strValue,并没有把ls_aaa的值加起来呢。请指教
qzz749791 发表于 2007-4-24 15:45
if ls_keyword="抬额头标准表情" then <BR> li_raise_forhead=integer(strValue) <BR> if (ole_emrpad.object.FindField("T-FGS",-1,1,true)) then<BR> ls_aaa=this.object.GetFieldText("-1", "-1", "-1", "-1", FALSE)<BR> //把计算的结果赋值给结果元素<BR> <BR> ls_bbb=string(integer(ls_aaa)+integer(strValue))<BR> messagebox("",ls_bbb)<BR> ole_emrpad.object.SetFieldText(-1,-1,-1,-1,ls_bbb)<BR> end if <BR> <BR> end if<BR> if ls_keyword="轻闭眼标准表情" then <BR> li_close_eyes=integer(strValue) <BR> if (ole_emrpad.object.FindField("T-FGS",-1,1,true)) then<BR> ls_aaa=this.object.GetFieldText("-1", "-1", "-1", "-1", FALSE)<BR> //把计算的结果赋值给结果元素<BR> ls_bbb=string(integer(ls_aaa)+integer(strValue))<BR> messagebox("",ls_bbb)<BR> ole_emrpad.object.SetFieldText(-1,-1,-1,-1,ls_bbb)<BR> end if <BR> end if<BR>========================================================================<BR>代码是这样的,刚才发的图好像没上来呀
hzjwcx 发表于 2007-4-25 10:35
messagebox("",ls_bbb)<BR>messagebox("",ls_bbb)
hzjwcx 发表于 2007-4-25 10:37
<P>messagebox("strValue",strValue)<BR>messagebox("ls_aaa",ls_aaa)</P>
<P><BR>messagebox("ls_bbb",ls_bbb)<BR>分別看看這幾個值是?</P>
wang_bo512 发表于 2007-7-19 10:18
加号前后分别加一个空格看看。
千金散尽 发表于 2007-7-23 17:15
<P>你的运算方法不对阿,<BR>引用:ls_aaa=this.object.GetFieldText("-1", "-1", "-1", "-1", FALSE)<BR> ls_bbb=string(integer(ls_aaa)+integer(strValue))<BR>ls_aaa等于什么啊取出来。然后是integer(ls_aaa)能不能这样自用。其它没有错误<BR></P>
andkylee 发表于 2007-7-27 09:18
ls_bbb=string(integer(ls_aaa)+integer(strValue))<BR><BR>怎么能字符型的和整形的加在一起呢?
页:
[1]