[REBOL] Re: using 'find to search

2001-04-12 Thread ryan . christiansen
No, you're not misunderstanding. But why does it work for you and not for me? Seriously. The script is returning 'none for me now. I guess I'll tweak it some more. Still confused. In reference to "search function", I assume that you are referring to the "Search News!" button and accompanying

[REBOL] Re: using 'find to search

2001-04-11 Thread ryan . christiansen
The foreach statement doesn't seem to be checking "each" 'xml-message in 'messages. It only seems to be searching on the second message. It will find any word in the second message, but ignores the first message altogether. Ryan C. Christiansen Web Developer Intellisol International 4733 Amber

[REBOL] Re: using 'find to search

2001-04-11 Thread Alan_Otterstad
Ryan, Just putting in 2 cents worth to try and help...i'm not very good at Rebol yet. Does find work like parse...if so then I noticed in another message the solution was to include a "to end" at the end of the command to make sure that the entire string/block you are searching thru gets

[REBOL] Re: using 'find to search

2001-04-11 Thread Jussi Hagman
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): The foreach statement doesn't seem to be checking "each" 'xml-message in 'messages. It only seems to be searching on the second message. It will find any word in the second message, but ignores the first message altogether. foreach

[REBOL] Re: using 'find to search

2001-04-11 Thread GS Jones
From: [EMAIL PROTECTED] I am using the following to search for keywords in a string. The word 'xml-message represents a string which includes XML tags and content between the tags. The word 'messages is a block of 'xml-message strings. The word 'cgi-data is an object including values

[REBOL] Re: using 'find to search

2001-04-11 Thread Jussi Hagman
Quoting [EMAIL PROTECTED] ([EMAIL PROTECTED]): foreach xml-message messages [ if find xml-message cgi-data/keyword [ message-with-keyword: load/markup xml-message append messages-with-keyword message-with-keyword/messageID