Re: WebDNA Programming question - Help Please
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 37989
interpreted = N
texte = Thank you!!!!Ron----- Original Message -----From: Daniel Smith
To: WebCatalog Talk Sent: Monday, August 20, 2001 10:07 AMSubject: Re: WebDNA Programming question - Help Pleaseyou are using [if] in the wrong context...you want to use[showif] instead.Look in the reference manual under showif and everythingshould be good for you.~Dan------------------------------------------------------------Daniel H. SmithWebDeveloper/WebDesigner Extraordinaire914.669.1187dsmith7@dsmith7.comFor the Skills Go To: www.dsmith7.comFor the Love Go To: www.danandsabrina.comFor the Read Go To: www.yeahbabe.org---------------------------------------------------------------------- Original Message ----------------------------------From: Ron Parker Reply-To: (WebCatalog Talk)Date: Mon, 20 Aug 2001 09:09:13>Hi,>I'm very new to WebDNA and I am writing a yellow pagessearch script and am>stuck on these If/Then Statements. I have quite a fewnested inside the>first>ones but can't even get past the first one to see what'swrong :-\ This is>the error I get when trying to run my script:>>[if([action]=search)] An unknown error occurred:>IfNotFound>THEN>>I'm not even sure what that means? Here is the code formy script below...>Also, I was wondering how you set variables? Would it besomething like:>>[somevariable=1] or would it be [somevariable]=1 ? Hereis the full script;>I>use both of those variable assignment commandsthoughout 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)|([charact>er>>]=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]>[searchdb=ohiostate.db&bw[searchcode]data=[code]&eqCompanydata=[search]]>[/then]>[else]>[search>db=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 yourtime.>-Jeff>>>>Thanks, I'm really stuck on this problem I'm getting.>>Jeff>coopa2004@aol.com>>>------------------------------------------------------------->This message is sent to you because you are subscribedto> 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/>__________________________________________________D O T E A S Y - Join the web hosting revolution! http://www.doteasy.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 toWeb Archive of this list is at: http://search.smithmicro.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:
Thank you!!!!Ron----- Original Message -----From: Daniel Smith To: WebCatalog Talk Sent: Monday, August 20, 2001 10:07 AMSubject: Re: WebDNA Programming question - Help Pleaseyou are using [if] in the wrong context...you want to use[showif] instead.Look in the reference manual under showif and everythingshould be good for you.~Dan------------------------------------------------------------Daniel H. SmithWebDeveloper/WebDesigner Extraordinaire914.669.1187dsmith7@dsmith7.comFor the Skills Go To: www.dsmith7.comFor the Love Go To: www.danandsabrina.comFor the Read Go To: www.yeahbabe.org---------------------------------------------------------------------- Original Message ----------------------------------From: Ron Parker Reply-To: (WebCatalog Talk)Date: Mon, 20 Aug 2001 09:09:13>Hi,>I'm very new to WebDNA and I am writing a yellow pagessearch script and am>stuck on these If/Then Statements. I have quite a fewnested inside the>first>ones but can't even get past the first one to see what'swrong :-\ This is>the error I get when trying to run my script:>>[if([action]=search)] An unknown error occurred:>IfNotFound>THEN>>I'm not even sure what that means? Here is the code formy script below...>Also, I was wondering how you set variables? Would it besomething like:>>[somevariable=1] or would it be [somevariable]=1 ? Hereis the full script;>I>use both of those variable assignment commandsthoughout 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)|([charact>er>>]=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]>[searchdb=ohiostate.db&bw[searchcode]data=[code]&eqCompanydata=[search]]>[/then]>[else]>[search>db=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 yourtime.>-Jeff>>>>Thanks, I'm really stuck on this problem I'm getting.>>Jeff>coopa2004@aol.com>>>------------------------------------------------------------->This message is sent to you because you are subscribedto> 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/>__________________________________________________D O T E A S Y - Join the web hosting revolution! http://www.doteasy.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 toWeb Archive of this list is at: http://search.smithmicro.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:
SSL (1998)
Multiple transactions per cart (2000)
encrypted database (2004)
[SHOWIF AND/OR] (1997)
[ShowIf] and empty fields (1997)
Error:Too many nested [xxx] contexts (1997)
WebCat for mass emailings (1997)
Template Not Found (1998)
GuestBook example (1997)
Not really WebCat (1997)
Emailer setup (1997)
Order not created error (never mind) (1997)
Webdna and Plesk on MS server2003 (2008)
If Empty ? (1997)
WebCatalog Programmer looking for a new job (2001)
Store Example to Use (1998)
Custom Shipping Charges (1997)
Nesting FoundItem Context (1997)
Tracking inbound links for discounts (1997)
more on quicktime test stuff (1997)