Re: [WebDNA] Variable mystery
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102639
interpreted = N
texte = 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.what is the value of [PAGEKW] that breaks?btw, I've always used the rest of the appropriate parameters when dealing with 'word or' searches... &
Word=ww&wbrk=&type=num/date etc.Donovan-- Donovan D. Brooke PH/FAX: 1 (608) 770-3822----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
Associated Messages, from the most recent to the oldest:
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.what is the value of [PAGEKW] that breaks?btw, I've always used the rest of the appropriate parameters when dealing with 'word or' searches... &Word=ww&wbrk=&type=num/date etc.Donovan-- Donovan D. Brooke PH/FAX: 1 (608) 770-3822----------------------------------------------VPWebDNA Software Corporation16192 Coastal HighwayLewes, DE 19958
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:
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
Authenticate Checker - different versions ?? (1998)
Hiding the URL(was Cart ID Duplication) (2001)
Plugin or CGI or both (1997)
re:check boxes (1997)
variable value locked when passed to include (2001)
spawn (1998)
WebCat2_Mac RETURNs in .db (1997)
Standalone Testing (1998)
RE: Any limit to [include] (1997)
Help formatting search results w/ table (1997)
Apple event reply error (-1) (1997)
SiteEditPro (1996)
New Plug-in and Type 11 errors (1997)
OK, here goes... (1997)
More help for discount pricing (1998)
Not really WebCat (1997)
Document Contains No Data! (1997)
Stumpted Again (1997)
no global [username] or [password] displayed ... (1997)