Re: [WebDNA] Variable mystery
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102638
interpreted = N
texte = makes no sense as it is seems from what you describe. From what you say, I don't think you did anything "wrong".I am guessing there is more to it than just what seems(ed) obvious at the time of reporting here.-GOn May 30, 2009, at 8:31 PM, Frank Nordberg wrote:> Here's a really weird puzzle. Can anybody explain how a variable can > work in a textstring but not in a search command?>> I was struggling with this command:> [SEARCH db=ads.db&woanKWdatarq=[PAGEKW]]> It should have shown two matches but came empty and it was soon > obvious that the [PAGEKW] variable was the problem. However, > removing the opening and edning square brackets:> SEARCH db=ads.db&woanKWdatarq=[PAGEKW]> showed the text string correctly with the variable replaced with the > right value.>> I eventually figured out what I did wrong (needed a [INTERPRET] > context for the variable definition earlier on the page) so the > question isn't why the search command didn't work but rather why the > text string did. I mean, a variable is either defined or not > defined, isn't it? I had no idea there was anything inbetween.>>> Frank Nordberg> http://www.musicaviva.com> http://stores.ebay.com/Nordbergs-Music-Store?refid=store>> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Associated Messages, from the most recent to the oldest:
makes no sense as it is seems from what you describe. From what you say, I don't think you did anything "wrong".I am guessing there is more to it than just what seems(ed) obvious at the time of reporting here.-GOn May 30, 2009, at 8:31 PM, Frank Nordberg wrote:> Here's a really weird puzzle. Can anybody explain how a variable can > work in a textstring but not in a search command?>> I was struggling with this command:> [SEARCH db=ads.db&woanKWdatarq=[PAGEKW]]> It should have shown two matches but came empty and it was soon > obvious that the [PAGEKW] variable was the problem. However, > removing the opening and edning square brackets:> SEARCH db=ads.db&woanKWdatarq=[PAGEKW]> showed the text string correctly with the variable replaced with the > right value.>> I eventually figured out what I did wrong (needed a [interpret] > context for the variable definition earlier on the page) so the > question isn't why the search command didn't work but rather why the > text string did. I mean, a variable is either defined or not > defined, isn't it? I had no idea there was anything inbetween.>>> Frank Nordberg> http://www.musicaviva.com> http://stores.ebay.com/Nordbergs-Music-Store?refid=store>> ---------------------------------------------------------> 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> old archives: http://dev.webdna.us/TalkListArchive/
Govinda
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:
Blocking off access (2005)
Redirect and passing more than one variable... (2002)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
HELP-1!!! (1998)
Accented chars and emailer (1998)
updating checkbox in a db (1998)
corrupted images (2002)
unique ascending numbers (2003)
b12 cannot limit records returned and more. (1997)
The beginning (1997)
text size limitation (1997)
Format question WC Mac f3 (1997)
[OT] Shining Examples (2007)
FEATURE REQUEST: (was: Summarizing results. Is there a (1999)
protect tag not working (1998)
WebCat2 - Getting to the browser's username/password data (1997)
Newbie questions (1999)
using showpage and showcart commands (1996)
webcatalog 2.1.3 ACGI Weirdness? (1998)
Random again (2003)