一道VF表单题。
*command1。click
local n1,n2,n3,op1
n1=ThisForm。Text1。Value
n2=ThisForm。Text3。Value
op1=alltrim(ThisForm。 Text2。Value)
do case
case op1='+'
n3=n1+n2
case op1='-'
n3=n1-n2
case op1='*'
n3=n1*n2
case op1='/'
n3=n1/n2
endcase
ThisForm。 Text4。Value=n3
*command2。click
ThisForm。Text1。Value=0
ThisForm。T...全部
*command1。click
local n1,n2,n3,op1
n1=ThisForm。Text1。Value
n2=ThisForm。Text3。Value
op1=alltrim(ThisForm。
Text2。Value)
do case
case op1='+'
n3=n1+n2
case op1='-'
n3=n1-n2
case op1='*'
n3=n1*n2
case op1='/'
n3=n1/n2
endcase
ThisForm。
Text4。Value=n3
*command2。click
ThisForm。Text1。Value=0
ThisForm。Text3。Value=0
ThisForm。Text4。
Value=0
ThisForm。Text2。Value=''
。收起