Re: Is [variable] a Number?
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 69002
interpreted = N
texte = Clint Davis wrote:> How can I test a variable to make sure it's a number? I remember reading> something on the list some time ago, but I can't find it.Maybe an easier way:[text]ismath=no[/text][showif [url][math show=T]variabletotest[/math][/url]![url]variabletotest[/url]][text]ismath=yes[/text][/showif]This may work because one doesn't need the brackets with math vars when inside a math context.(both untested)Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Clint Davis wrote:> How can I test a variable to make sure it's a number? I remember reading> something on the list some time ago, but I can't find it.Maybe an easier way:[text]ismath=no[/text][showif [url][math show=T]variabletotest[/math][/url]![url]variabletotest[/url]][text]ismath=yes[/text][/showif]This may work because one doesn't need the brackets with math vars when inside a math context.(both untested)Donovan-- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:>(608) 835-2476 TALK:>http://artglass-forum.com WEB:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan Brooke
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
[SMSI] WebDNA is too good to go away! (2006)
Out of the woodwork (2007)
WC1.6 to WC2 date formatting (1997)
problems with 2 tags (1997)
emailer error -108 (1997)
Separate SSL Server (1997)
4.5's frequency of math problem running as demo? (2002)
form data submission gets truncated (1997)
emailer (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Shopping with Accounts (2003)
[Capitalize] (1998)
emailer (1997)
Round UP to nearest 100 (2007)
WebCat2: Formulas.db question (1997)
[WebDNA] Upper ASCII and charset [OT] (2016)
re:check boxes (1997)
Emailer problem (1998)
PhotoMill -> PhotoMaster (1997)
Lost Password? (2002)