Re: tag request

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25197
interpreted = N
texte = >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 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)
>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 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:

How can I record purchases to a database? (1998) TCPConnect misbehavin' for me. (2000) Stat analyzer (1997) View order not right (1997) More on the email templates (1997) ssl and invoic.tpl and back bttn (2002) Sales Tax Rates 10/01/01 (2001) redirect from the errorsMessages.db entry (1997) Is this possible, WebCat2.0 and checkboxes (1997) ShowNext (1997) WC Database Format (1997) Setting up shop (1997) Do not truncate a whole word (2004) problem with [Format Days_To_Date] (2000) Smart caching problems with 2.1b3? (1997) Searching Numbers (2004) Secure server question (1997) Newbie questions (1999) re:Clickable maps and WebCatalog? (1996) Adding Message to Order (1997)