Re: [WebDNA] possible bug? (db field named [width])

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108197
interpreted = N
texte = For me this just goes back to my college database theory class where I learned that, no matter what, you should never ever use any reserved word as a variable name. Even when, in this case, it seems completely valid. -Matt On 1/24/2012 2:46 AM, Govinda wrote: > version=6.2 > platform=unix-Linux Intel > > In case anyone is inclined: > please help me confirm: > make a db with a field named [width]..plus other fields > > populate them all, several records... > > search the db.. and display all records' field data to the web page. > > The only way I could get the value of the [width] field is with [::width] (see manual on "scope"). > > But I don't understand why we should need to step up a level of scope to get [width]. ?! > > At first I thought it was a collision with a [fileinfo] tag (somehow).. but I am not using that here. and anyway that tag is named [imagewidth]. > > Is it way too late and I am being dumb (on top of blurry-eyed)? ... or is it way too late, but this is still nevertheless a bug? > > -Govinda--------------------------------------------------------- > 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 > > > > -- > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst& Educator > > Psi Prime, Inc. > 323 Union Blvd. > Totowa, NJ 07512 > > Service: 973.413.8211 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.perosi.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] possible bug? (db field named [width]) (christophe.billiottet@webdna.us 2012)
  2. Re: [WebDNA] possible bug? (db field named [width]) (christophe.billiottet@webdna.us 2012)
  3. Re: [WebDNA] possible bug? (db field named [width]) (Govinda 2012)
  4. Re: [WebDNA] possible bug? (db field named [width]) (christophe.billiottet@webdna.us 2012)
  5. Re: [WebDNA] possible bug? (db field named [width]) (William DeVaul 2012)
  6. Re: [WebDNA] possible bug? (db field named [width]) (Govinda 2012)
  7. Re: [WebDNA] possible bug? (db field named [width]) (christophe.billiottet@webdna.us 2012)
  8. Re: [WebDNA] possible bug? (db field named [width]) (Govinda 2012)
  9. Re: [WebDNA] possible bug? (db field named [width]) ("Psi Prime Inc, Matthew A Perosi " 2012)
  10. [WebDNA] possible bug? (db field named [width]) (Govinda 2012)
For me this just goes back to my college database theory class where I learned that, no matter what, you should never ever use any reserved word as a variable name. Even when, in this case, it seems completely valid. -Matt On 1/24/2012 2:46 AM, Govinda wrote: > version=6.2 > platform=unix-Linux Intel > > In case anyone is inclined: > please help me confirm: > make a db with a field named [width]..plus other fields > > populate them all, several records... > > search the db.. and display all records' field data to the web page. > > The only way I could get the value of the [width] field is with [::width] (see manual on "scope"). > > But I don't understand why we should need to step up a level of scope to get [width]. ?! > > At first I thought it was a collision with a [fileinfo] tag (somehow).. but I am not using that here. and anyway that tag is named [imagewidth]. > > Is it way too late and I am being dumb (on top of blurry-eyed)? ... or is it way too late, but this is still nevertheless a bug? > > -Govinda--------------------------------------------------------- > 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 > > > > -- > Matthew A Perosi > Corporate Consultant > Mobile Marketing Expert > Senior Web Developer > SEO Analyst& Educator > > Psi Prime, Inc. > 323 Union Blvd. > Totowa, NJ 07512 > > Service: 973.413.8211 > Training: 973.413.8214 > Fax: 973.413.8217 > > http://www.perosi.com "Psi Prime Inc, Matthew A Perosi "

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:

Multiple Ad databases? (1997) WebDNA Solutions ... (1997) Encrypting WebDNA Templates (1999) [WebDNA] A new popuated field to a DB with 700.000 records (2009) [isfile] ? (1997) Area codes? (2001) WebCat2b15MacPlugin - [protect] (1997) Multiple catalog databases and showcart (1997) default value from Lookup (was Grant, please help me) (1997) Experience with creating real dynamic solutions?????? (1998) accountnum using [listwords] (2001) New Weird Behavior (bug report) (2000) Duplicate Items in the Cart (1998) FREE Web Server Monitor FREE (1997) Separate SSL Server (1997) Showing unopened cart (1997) Sitebuilder (2004) For those of you not on the WebCatalog Beta... (1997) Expiration of Carts (1997) What ports does Webcatalog use (2003)