aldweb

Close I. aldweb

Close II. PC Freeware

Close III. Palm Freeware

Close IV. Palm Shareware

Close V. iziBasic Palm

Close VI. Palm Knowledge

Close VII. Pocket Computer

Close VIII. miniPortail

Special !



Mobile version of
the aldweb Site

m.aldweb.com


Neither French, nor English?

Try one of these flags then:
[de] [es] [it] [pt]
Search




Weather / Spam / www

Lyon Weather


aldweb against spam


Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
298 Subscribers
Family's web sites

Webmaster - Infos
Friends News
Visits

   visitors

   visitors online

Poll
What do you think of the new design of the aldweb Site?
 
Great !
Beautiful
Average
So ugly...
Results
forum.gifForum - iziBasic - Topic #1534

Forum - Forum
iziBasic - iziBasic


Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257

active  Topic # 1534  Float into NUMFIELD

25/04/2007 @ 09:14
by Newbi Markus

Anonymous



Hello,

i am new in progrmming. I can't write numbers like 1.5; 2.86; ... into the NUMFIELD. If i write it in the way 1,5 the number behind the "," will be ignored.

What should i do?

Thank a lot

Markus
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 1
--------
25/04/2007 @ 21:29
by aldweb

Anonymous

visitor
Hello and welcome to you in the great universe of programming

A NUMFIELD will only accept characters in the [0..9] range + the decimal separator as defined in your preferences (so "," or or "."). Then 1.5 or 1,5 should work!
I have no idea why it does not work in your case...

What you can do: use a TEXTFIELD instead. The side effect is that the user can input whatever he wants.

Then, either with TEXTFIELD or with NUMFIELD, retrieve the string with the FIELD$() function, and convert it to a number with the VAL() function.
Be careful that if you use "," as the decimal separator, this character should be converted to a "." before applying the VAL() function.

Cheers,
aldweb
Write to aldweb   Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 2
--------
25/04/2007 @ 21:57
by Markus

Anonymous

visitor
Hello aldweb,

thank you, now it works well.

Markus
  Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 



 
^ Top ^