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
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
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
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
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
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