Re: SHOWIF/HIDEIF empty fields

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61906
interpreted = N
texte = Kenneth Grome wrote: > First you should know that I always name my form fields with the exact > same names as the fields in my database, because this simplifies TONS of > webdna coding -- not just the stuff I will show you here. After you > understand this requirement, you will also see how and why my technique > works so well. > > First I create a bunch of insecure text variables and set their values > to [blank] like this: > > [listfields db=xxx.db] > [text secure=f][fieldname]=[/text] > [/listfields] Ahh, your probably one of those that cause me great frustration when I have to edit someone elses code and there is a bunch of alike named varialbes... not to mention the use of reserved variable names (but thats another story) ;-) Kenneth, you can do the same things you are talking about, yet at the same time, keeping the names different. [listfields db=xxx.db] [text secure=f]T_[fieldname]=[/text] [/listfields] The "T_" is just a way to tell me its a Text Variable... use whatever naming convections you like... I've used a few over the years but something like: T_ = text varialbe F_ = Form Variable M_ = Math Variable For databases, I usually use the first character or first two characters of the database file name in their field names... (except for the webDNA proprietary databases "products etc"). So if the database is Names.. N_ID, N_NAME, etc... Then its just a matter of using getchars within formvariables etc.. to get to what you want. Naming convections (and easy to read code) are at the very top of list in importance in my opinion. They, along with good comments and code indentation, will make for a less stressful editing experience for you... not to mention if others end up editing your code! Donovan P.S. I would like to remind everyone that my cat now makes it possible to get your coding done at an amazing rate of $3.00/hour! A feline furry of almost free code! feel it! -- =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 Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =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: SHOWIF/HIDEIF empty fields ( Terry Wilson 2005)
  2. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  3. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  4. Re: SHOWIF/HIDEIF empty fields ( Lester 2005)
  5. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  6. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  7. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  8. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  9. Re: SHOWIF/HIDEIF empty fields ( Bob Minor 2005)
  10. Re: SHOWIF/HIDEIF empty fields ( "WebDna @ Inkblot Media" 2005)
  11. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  12. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  13. Re: SHOWIF/HIDEIF empty fields -- OOPS ( Gary Krockover 2005)
  14. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  15. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  16. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  17. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  18. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  19. Re: SHOWIF/HIDEIF empty fields ( Gary Krockover 2005)
  20. Re: SHOWIF/HIDEIF empty fields ( Stuart Tremain 2005)
  21. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  22. Re: SHOWIF/HIDEIF empty fields ( Donovan Brooke 2005)
  23. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  24. Re: SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
  25. Re: SHOWIF/HIDEIF empty fields ( Kenneth Grome 2005)
  26. SHOWIF/HIDEIF empty fields ( Frank Nordberg 2005)
Kenneth Grome wrote: > First you should know that I always name my form fields with the exact > same names as the fields in my database, because this simplifies TONS of > webdna coding -- not just the stuff I will show you here. After you > understand this requirement, you will also see how and why my technique > works so well. > > First I create a bunch of insecure text variables and set their values > to [blank] like this: > > [listfields db=xxx.db] > [text secure=f][fieldname]=[/text] > [/listfields] Ahh, your probably one of those that cause me great frustration when I have to edit someone elses code and there is a bunch of alike named varialbes... not to mention the use of reserved variable names (but thats another story) ;-) Kenneth, you can do the same things you are talking about, yet at the same time, keeping the names different. [listfields db=xxx.db] [text secure=f]T_[fieldname]=[/text] [/listfields] The "T_" is just a way to tell me its a Text Variable... use whatever naming convections you like... I've used a few over the years but something like: T_ = text varialbe F_ = Form Variable M_ = Math Variable For databases, I usually use the first character or first two characters of the database file name in their field names... (except for the webDNA proprietary databases "products etc"). So if the database is Names.. N_ID, N_NAME, etc... Then its just a matter of using getchars within formvariables etc.. to get to what you want. Naming convections (and easy to read code) are at the very top of list in importance in my opinion. They, along with good comments and code indentation, will make for a less stressful editing experience for you... not to mention if others end up editing your code! Donovan P.S. I would like to remind everyone that my cat now makes it possible to get your coding done at an amazing rate of $3.00/hour! A feline furry of almost free code! feel it! -- =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 Eucalyptus Design <-Web Development (specializing in eCommerce), -> <- Graphic Design, Custom Tags and Labels -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 Web:> http://www.euca.us =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:

Test (2002) BBEdit and WebCatalog 2.0? (1997) Off Topic: Help Wanted (1997) TemplateCacheSize preference! (1998) Grep Problems (2005) Reversed words (1997) [WebDNA] Accepting Payments on Site (2013) Summary search -- speed (1997) [WebDNA] CICADA (2008) PCS Customer submissions ? (1997) RE: IIS4b2 and WebCatalog b19 (1997) European Convention (2004) using webdna to determine pixel parameters (2000) html in a database (1998) WebCatalog Eating 200% of the CPU (2002) Filemaker Pro & Webcatalog (1999) [INCLUDE] Limitations (1998) Hard Questions ? (1997) WebSite vs. IIS (1997) [MATH] and Dates (1998)