Re: [WebDNA] isnumeric

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112439
interpreted = N
texte = 3 > 9 sep 2015 kl. 22:52 skrev Kenneth Grome : > >> Is there a straightforward way in webdna of determining whether >> a string is numeric? > > [text]msg=all chars are numeric digits[/text] > > [listchars chars=[string]] > [hideif 0123456789^[char]] > [text]msg=some chars are not numbers[/text] > [/hideif] > [/listchars] > > [msg] [text]msg=all chars are numeric digits[/text] [text]numCart=1234567890[/text] [text]mixedCart=1234567890=!()[/text] [hideif [math][url][numCart][/url]*1[/math]=[url][numcart][/url]] [text]msg=some chars are not numbers[/text] [/hideif] Testing [numCart]:
[msg]

[hideif [math][url][mixedCart][/url]*1[/math]=[url][mixedCart][/url]] [text]msg=some chars are not numbers[/text] [/hideif] Testing [mixedCart]:
[msg] Best, Christer --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] isnumeric ("mainlighting ." 2015)
  2. Re: [WebDNA] isnumeric (Christer Olsson 2015)
  3. Re: [WebDNA] isnumeric (Kenneth Grome 2015)
  4. Re: [WebDNA] isnumeric (Stuart Tremain 2015)
3 > 9 sep 2015 kl. 22:52 skrev Kenneth Grome : > >> Is there a straightforward way in webdna of determining whether >> a string is numeric? > > [text]msg=all chars are numeric digits[/text] > > [listchars chars=[string]] > [hideif 0123456789^[char]] > [text]msg=some chars are not numbers[/text] > [/hideif] > [/listchars] > > [msg] [text]msg=all chars are numeric digits[/text] [text]numCart=1234567890[/text] [text]mixedCart=1234567890=!()[/text] [hideif [math][url][numCart][/url]*1[/math]=[url][numcart][/url]] [text]msg=some chars are not numbers[/text] [/hideif] Testing [numCart]:
[msg]

[hideif [math][url][mixedCart][/url]*1[/math]=[url][mixedCart][/url]] [text]msg=some chars are not numbers[/text] [/hideif] Testing [mixedCart]:
[msg] Best, Christer --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us . Christer Olsson

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:

More on the email templates (1997) Re:Can someone remove this guy with the 186k emails!? (Thanksfor the email!) (1998) Now you see it now you donīt (1997) [WebDNA] TCPConnect w/ user:pass (2009) webcat method for waiting specific amount of time? (2000) PC Auth Hub+Merchant (1998) Updating a database once per day - An example (1998) Help! WebCat2 bug (1997) Upgrading from version (1998) Referrer or maybe another way..... (2005) sort problems....bug or brain fart? (1997) date sorting and 'template (1997) Feedback on new features (2000) [WebDNA] How to activate error logging (2019) Nested vs conditional (1997) [OT] ISP Windows program (2005) Add message to Order (1997) I assume it is a safe bet this does not help (1998) Error: this shopping cart has already been submitted (2003) WC2b15 - [HTMLx]...[/HTMLx] problems (1997)