VS: desimal numbers calculation
Jan Schenkel
janschenkel at yahoo.com
Mon Oct 14 07:29:01 EDT 2002
--- Esa_Kivelä <Esa.Kivela at ncrc.fi> wrote:
> [snip]
> > function Conv4Disp pNumber
> > replace "." with "," in pNumber
> > return pNumber
> > end Conv4Disp
> > function Conv4Calc pNumber
> > replace "," with "." in pNumber
> > return pNumber
> > end Conv4Calc
> >
> > Hope this helped,
>
> Nope it dosen't. How I can calcalte desimal numbers
> fron text filed and put the results to the text
> field? I can put ie. 2,4 directly into text field
> without any convert?
>
Hi Esa,
Using the functions above, try this:
put Conv4Calc(field "Number1") into tNumber1
put Conv4Calc(field "Number2") into tNumber2
put Conv4Disp(tNumber1 + tNumber2) into field \
"Result"
Hope this helped,
Jan Schenkel.
=====
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
More information about the use-livecode
mailing list