Weather / Spam / www |
Lyon Weather

aldweb against spam 


|
|
|
 |
|
 |
|
- Forum
- iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Topic # 1592 |
Numfield |
29/10/2007 @ 20:48 by Nate Weil(New Message someone

|
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? |
|
|
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

visitor |
Hello Nate,
%P3$=FIELD$(#2) : %P3%=VAL(%P3$)
Cheers, aldweb
|
|
 |
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

visitor |
Ok thanks :)
just making sure I understand what's going on...
[text variable]=VAL(converts it to a number?)([Number variable]) Right? |
|
 |
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

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

visitor |
Ok well anyhow that works thanks a million :) |
|
 |
 topic active
 topic closed
 Sticky
 New message -
 Correct message
 Close topic
 Make sticky
|
|
 |
|
 |
|