WebDNA Programming question - Help Please
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 37987
interpreted = N
texte = Hi,I'm very new to WebDNA and I am writing a yellow pages search script and amstuck on these If/Then Statements. I have quite a few nested inside thefirstones but can't even get past the first one to see what's wrong :-\ This isthe error I get when trying to run my script:[if([action]=search)] An unknown error occurred:IfNotFoundTHENI'm not even sure what that means? Here is the code for my script below...Also, I was wondering how you set variables? Would it be something like:[somevariable=1] or would it be [somevariable]=1 ? Here is the full script;Iuse both of those variable assignment commands thoughout it.
Web Catalog Search[if([action]=search)][then][character]=[GetChars start=1&end=1][code][/Getchars][if(([character]=1)|([character]=2)|([character]=3)|([character]=4)|([character]=5)|([character]=6)|([character]=7)|([character]=8)|([character]=9)|([character]=0))][then][number]=[countchars][code][/countchars][if([number]=5)][then][searchcode=Zipcode][/then][else][searchcode=Telenum][/else][/if][/then][else][searchcode=City][/else][/if][if([type]=name)][then][search db=ohiostate.db&bw[searchcode]data=[code]&eqCompanydata=[search]][/then][else][searchdb=ohiostate.db&bw[searchcode]data=[code]&woSection_headdata=[search]][/else][/if]Found [numfound] matches.
[founditems]
[company]
[section_head]
[if([telenum]!)][then][telenum]
[/then][/if]Name: [if([first_name]=)][then]Not Given[/then][else][first_name][last_name]
[/else][/if][address]
[city], [state] [zipcode]
Employees: [no_of_employees]
[/DNA_founditems][/DNA_search][/then][else]
[/else][/if]Any help would be greatly appreciated. Thanks for your time.-JeffThanks, I'm really stuck on this problem I'm getting.Jeffcoopa2004@aol.com-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Hi,I'm very new to WebDNA and I am writing a yellow pages search script and amstuck on these If/Then Statements. I have quite a few nested inside thefirstones but can't even get past the first one to see what's wrong :-\ This isthe error I get when trying to run my script:[if([action]=search)] An unknown error occurred:IfNotFoundTHENI'm not even sure what that means? Here is the code for my script below...Also, I was wondering how you set variables? Would it be something like:[somevariable=1] or would it be [somevariable]=1 ? Here is the full script;Iuse both of those variable assignment commands thoughout it.Web Catalog Search[if([action]=search)][then][character]=[GetChars start=1&end=1][code][/Getchars][if(([character]=1)|([character]=2)|([character]=3)|([character]=4)|([character]=5)|([character]=6)|([character]=7)|([character]=8)|([character]=9)|([character]=0))][then][number]=[countchars][code][/countchars][if([number]=5)][then][searchcode=Zipcode][/then][else][searchcode=Telenum][/else][/if][/then][else][searchcode=City][/else][/if][if([type]=name)][then][search db=ohiostate.db&bw[searchcode]data=[code]&eqCompanydata=[search]][/then][else][searchdb=ohiostate.db&bw[searchcode]data=[code]&woSection_headdata=[search]][/else][/if]Found [numfound] matches.
[founditems]
[company]
[section_head]
[if([telenum]!)][then][telenum]
[/then][/if]Name: [if([first_name]=)][then]Not Given[/then][else][first_name][last_name]
[/else][/if][address]
[city], [state] [zipcode]
Employees: [no_of_employees]
[/DNA_founditems][/DNA_search][/then][else][/else][/if]Any help would be greatly appreciated. Thanks for your time.-JeffThanks, I'm really stuck on this problem I'm getting.Jeffcoopa2004@aol.com-------------------------------------------------------------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://search.smithmicro.com/
Ron Parker
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:
[WebDNA] Is this safe? (2013)
Rollovers (1999)
2.0 Beta (1997)
all records returned. (1997)
[] Boxes in Safari (2004)
Frames and WebCat (1997)
[/application] error? (1997)
[BULK] [WebDNA] [BULK] looking for the holy grail of hosting still (2013)
Not carrying Zero (2000)
Safari browser and WebDNA set-cookies (2003)
RE: Formulas.db + Users.db (1997)
All choices on IE different than Netscape (1997)
How true is this? (1999)
WebCatalog/Mac 2.1b2 New Features (1997)
WebCat2 - [include] tags (1997)
Test (2003)
Search in 2 or more catalogs (1997)
PCS Emailer's role ? (1997)
converting characters in form (1997)
command line in webDNA 5?! (2003)