Re: tag request

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25208
interpreted = N
texte = Good point, I never even thought of the fact that someone could enter both.Brian Boegershausen WebCatalog Programmer www.orderbywire.com ----- Original Message ----- From: Christer Olsson To: WebCatalog Talk Sent: Tuesday, December 07, 1999 11:07 AM Subject: Re: tag request >This is not as pretty as [showif [var1]=num]This is a number[/showif] >but it will work > >[text]numb=no[/text] >[showif [number]^1][text]numb=yes[/text][/showif] >[showif [number]^2][text]numb=yes[/text][/showif] >[showif [number]^3][text]numb=yes[/text][/showif] >[showif [number]^4][text]numb=yes[/text][/showif] >[showif [number]^5]text]numb=yes[/text][/showif] >[showif [number]^6][text]numb=yes[/text][/showif] >[showif [number]^7][text]numb=yes[/text][/showif] >[showif [number]^8][text]numb=yes[/text][/showif] >[showif [number]^9][text]numb=yes[/text][/showif] >[showif [number]^10][text]numb=yes[/text][/showif] > >[number] is [showif [numb]=no]not[/showif] a numeric field.I think Bob wants a tag that evaluates the whole contents of a field, so you can be sure only numbers are entered and nothing else, and so on.Your example above will break if someone enters My favourite number is 1 your code will evaluate it as a number.For making it work you'll have to evaluate every entered character individually, which is not too hard when you're talking about numeric fields, but will be pretty tough in other evaluation schemes. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re: tag request (Rob Marquardt 1999)
  2. Re: tag request (Brian Boegershausen 1999)
  3. Re: tag request (Christer Olsson 1999)
  4. Re: tag request (Brian Boegershausen 1999)
  5. Re: tag request (Bob Minor 1999)
  6. tag request (Bob Minor 1999)
Good point, I never even thought of the fact that someone could enter both.Brian Boegershausen WebCatalog Programmer www.orderbywire.com ----- Original Message ----- From: Christer Olsson To: WebCatalog Talk Sent: Tuesday, December 07, 1999 11:07 AM Subject: Re: tag request >This is not as pretty as [showif [var1]=num]This is a number[/showif] >but it will work > >[text]numb=no[/text] >[showif [number]^1][text]numb=yes[/text][/showif] >[showif [number]^2][text]numb=yes[/text][/showif] >[showif [number]^3][text]numb=yes[/text][/showif] >[showif [number]^4][text]numb=yes[/text][/showif] >[showif [number]^5]text]numb=yes[/text][/showif] >[showif [number]^6][text]numb=yes[/text][/showif] >[showif [number]^7][text]numb=yes[/text][/showif] >[showif [number]^8][text]numb=yes[/text][/showif] >[showif [number]^9][text]numb=yes[/text][/showif] >[showif [number]^10][text]numb=yes[/text][/showif] > >[number] is [showif [numb]=no]not[/showif] a numeric field.I think Bob wants a tag that evaluates the whole contents of a field, so you can be sure only numbers are entered and nothing else, and so on.Your example above will break if someone enters My favourite number is 1 your code will evaluate it as a number.For making it work you'll have to evaluate every entered character individually, which is not too hard when you're talking about numeric fields, but will be pretty tough in other evaluation schemes. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Brian Boegershausen

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:

Sorting (2005) Hairy Shipping Monster (2006) PCS Emailer's role ? (1997) Re1000001: Setting up shop (1997) Credit card types (1997) Queertrons? (1997) MOOOOOO (2000) Nested tags count question (1997) [WebDNA] [BULK] Should I be worried about this web traffic? (2017) problems with 2 tags (1997) A Global Variable (1997) Text data with spaces in them... (1997) Multiple security dbs (1997) Using [Include] Context (1999) case sensitivity in lookups (1997) licenses for sale (2006) Shopping cart now bad (1997) using showpage and showcart commands (1996) Error Messges (1997) Where is f2? (1997)