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 #1592

Forum - Forum
iziBasic - iziBasic


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

active  Topic # 1592  Numfield

29/10/2007 @ 20:48
by Nate Weil(New Message someone

Anonymous



I got yet another problem...

I decided to make a little program for rolling dice. I want the user to be able to roll as many dice as his-her game needs, so I decided to try using a numfield for the first time. I got a numfield going, I used the FIELD$ function to get the number from it, but then it's text not a number. How do I fix it?

Here's a listing clip

[numfield setup]

%P3$=FIELD$(#2)

This works, but it's in text form. Using %P3% returns a syntax error.
Can someone help?
  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
--------
29/10/2007 @ 22:07
by aldweb

Anonymous

visitor
Hello Nate,

%P3$=FIELD$(#2) : %P3%=VAL(%P3$)


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
--------
29/10/2007 @ 22:16
by Nate Weil

Anonymous

visitor
Ok thanks :)

just making sure I understand what's going on...

[text variable]=VAL(converts it to a number?)([Number variable])
Right?
  Post an answer  Top

Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 497
Answer n° 3
--------
29/10/2007 @ 22:49
by aldweb

Anonymous

visitor
Hello Nate,

I do not understand your coding, but VAL(), as stated in the user manual, takes a string in parameter and returns a number.

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° 4
--------
29/10/2007 @ 23:00
by Nate Weil

Anonymous

visitor
Ok well anyhow that works thanks a million :)
  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 ^