Re: Is [variable] a Number?

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69000
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. So you *do* still code WebDNA. ;-) I suppose this would do it: [text]ismath=no[/text] [listvariables type=math] [showif [url][raw][variable_to_test][/raw][/url]=[url][[name]][/url]] [text]ismath=yes[/text] [/showif] [/listvariables] 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:

    
  1. Re: Is [variable] a Number? ( Paul Willis 2007)
  2. Re: Is [variable] a Number? ( Alex McCombie 2007)
  3. Re: Is [variable] a Number? ( Alex McCombie 2007)
  4. Re: Is [variable] a Number? ( Donovan Brooke 2007)
  5. Re: Is [variable] a Number? ( Clint Davis 2007)
  6. Re: Is [variable] a Number? ( Donovan Brooke 2007)
  7. Is [variable] a Number? ( Clint Davis 2007)
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. So you *do* still code WebDNA. ;-) I suppose this would do it: [text]ismath=no[/text] [listvariables type=math] [showif [url][raw][variable_to_test][/raw][/url]=[url][[name]][/url]] [text]ismath=yes[/text] [/showif] [/listvariables] 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:

include bug????? (1997) [WriteFile] problems (1997) Anyone awake? Newby moves deeper! Sitesearch & Customer DB (2000) Signal Raised Error (1997) Separate SSL Server (1997) changing creator codes (2000) Associative lookup style? + bit more (1997) TemplateCacheSize preference (1998) Re:2nd WebCatalog2 Feature Request (1996) Bug? (1997) Emailer help....! (1997) WebCat2 Append problem (B14Macacgi) (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Shipping by order total (2003) Exclamation point (1997) beta 2 Plugin (2000) [WebDNA] Crashing again (2008) Greeting Card System (2000) Zeroing out shipping costs (2000) WebCatalog NT beta 18 now available (1997)