VS: error at left operand?

Esa Kivelä Esa.Kivela at ncrc.fi
Tue Oct 15 04:23:00 CDT 2002


> -----Alkuperäinen viesti-----
> Lähettäjä: Richard Gaskin [mailto:ambassador at fourthworld.com]
> Lähetetty: 15. lokakuuta 2002 12:05
> Vastaanottaja: use-revolution at lists.runrev.com
> Aihe: Re: error at left operand?
> 
> 
> Esa Kivelä wrote:
> 
> > I have code:
> > 
> > on idle
> > set the itemdel to ","
> > put item 1 of field "huu" + item 1 of field "buu" + item 1 
> of field "suu" into
> > field "28"
> > 
> > end idle
> > 
> > and I get error message: "  * There was an Execution Error 
> at 10:58:55 AM
> > Error description:  Operators +: error in left operand
> > Object: field id 1066 of card id 1002 of stack "C:/Program 
> Files/Revolution
> > 1.1.1/resusrssikortti.rev"
> > --------------------
> > put item 1 of field "huu" + item 1 of field "buu" + item 1 
> of field "suu" into
> > field "28"
> > --------------------"
> > 
> > What that mean?
> 
> Try clarifying it for the interpreter with parentheses:
> 
>  put (item 1 of field "huu") + (item 1 of field "buu") + 
> (item 1 of field
> "suu") into field "28"
> 
> Also, make sure the data in item 1 is numeric.

That error message gomes when text field is empty or there is one space (spacebar) in the field...werid...

EsaK 



More information about the use-livecode mailing list