Spécial ! |
Version mobile de l'aldweb Site m.aldweb.com Ni Français, ni Anglais ?Essayez donc l'un de ces drapeaux :
|
|
Météo / Spam / www |
Météo Lyon
aldweb contre le SPAM
|
|
|
|
|
|
|
- Forum - iziBasic
Warning: A non-numeric value encountered in /web5/aldweb/www/aldweb_com/www/thread.php on line 257
Sujet n° 1592 |
Numfield |
le 29/10/2007 @ 20:48 par 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
Réponse n° 1 -------- le 29/10/2007 @ 22:07 par aldweb
visiteur |
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
Réponse n° 2 -------- le 29/10/2007 @ 22:16 par Nate Weil
visiteur |
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
Réponse n° 3 -------- le 29/10/2007 @ 22:49 par aldweb
visiteur |
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
Réponse n° 4 -------- le 29/10/2007 @ 23:00 par Nate Weil
visiteur |
Ok well anyhow that works thanks a million :) |
|
|
sujet actif
sujet clos
Important!
Nouveau message -
Rectifier message
Clôturer sujet
Remonter
|
|
|
|
|
|