il Sat, 20 Mar 2004 10:57:55 +0100, yvon.thoravalNO-SPAM / free.fr (Yvon
Thoraval) ha scritto::


>
>def  doOperand(t, v)
>    if value  == "ce"
>        clearField()
>    else if value == "backspace"
>        print "backspace()", "\n"
>    else if value == "on"
>        clearField()
>#        setMemory("0")
>#        setOperand("")
>#        setProperty("action", value)
>    end
>end

here is the prob
if you do:


if condition
 stufff
else if ##nested check
else    ##nested else
end     ## just closing the internal if..else

you need to do:
if cind
 stuff
elsif 

elsif
....
else
end
>def doIt(t, v) 
>    if t == "operand" 
>      doOperand(t, v)
>    else 
>      print "doValue()", "\n"
>#        doValue(t, v)
>    end
>end
>
>doIt(type, value)