Re: _ in front of field name
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 18904
interpreted = N
texte = This certainly makes sense. But I would swear the database helper did it for creative database names too.Is there documentation on this _ thing? Is there a list of reserved words?>At 13:31 Uhr 15.07.1998, Sue Ann Sanders wrote:>>What is the significance of a _ in front of the field names within a>>form? I believe this was done automatically when I used the database>>helper.?>>It is a good idea to have a naming convention to avoid equal names for>fields and WebCat commands. Imagine you name a field of your form date>for the birthday. If you ask for this field on the following page, you>write for example:>Since you are born on [date] you are too old...>In this case WebCat will NOT insert the form field but todays date because>[date] is a command!>>So, if you name all form fields and variables according to such a naming>convention, you will never make a similar mistake. That is why you see>often names like [_date], [v.email] or similar in the code of other people.>>Peter>>__________________________________________>Peter Ostry - po@ostry.com - www.ostry.com>Ostry & Partner - Ostry Internet Solutions>Auhofstrasse 29 A-1130 Vienna Austria>fon ++43-1-8777454 fax ++43-1-8777454-21>
Associated Messages, from the most recent to the oldest:
This certainly makes sense. But I would swear the database helper did it for creative database names too.Is there documentation on this _ thing? Is there a list of reserved words?>At 13:31 Uhr 15.07.1998, Sue Ann Sanders wrote:>>What is the significance of a _ in front of the field names within a>>form? I believe this was done automatically when I used the database>>helper.?>>It is a good idea to have a naming convention to avoid equal names for>fields and WebCat commands. Imagine you name a field of your form date>for the birthday. If you ask for this field on the following page, you>write for example:>Since you are born on
[date] you are too old...>In this case WebCat will NOT insert the form field but todays date because>
[date] is a command!>>So, if you name all form fields and variables according to such a naming>convention, you will never make a similar mistake. That is why you see>often names like [_date], [v.email] or similar in the code of other people.>>Peter>>__________________________________________>Peter Ostry - po@ostry.com - www.ostry.com>Ostry & Partner - Ostry Internet Solutions>Auhofstrasse 29 A-1130 Vienna Austria>fon ++43-1-8777454 fax ++43-1-8777454-21>
Sue Ann Sanders
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:
$Quit, $CloseDatabase corrections (1997)
Cookie Crumble (1998)
WebCatalog Plug-in for Webstar. (1997)
Listserver problem (1997)
Its not that weird. (1997)
PCS Frames (1997)
[WebDNA] Scheduling App (2017)
Re:Dumb Question about Docs (1997)
SiteEdit Pro Update Announcement (1997)
[WebDNA] Failed to aquire lock on database - Possible deadlock averted (2011)
Shopping Cart - prices? (1997)
[OT] Search Engine Tips (2003)
5.0 Pricing (2003)
Problem with summ=T & [sum fieldname=] (2001)
I'm new be kind (1997)
WebCat Emailer & Liststar (1997)
WebDNA 5 - Privacy Issue (Built in sniffer) (2003)
WebDNA Challenge - Was: Why WebDNA is not popular (2002)
MacOS9 plugin 4.0.2b5 template security error (2000)
Spiders (2000)