Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: using 'find to search

From: jhagman:infa:abo:fi at: 12-Apr-2001 1:17

Quoting [ryan--christiansen--intellisol--com] ([ryan--christiansen--intellisol--com]):
> 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 xml-message messages [
This must sound stupid, but: Are you sure that messages is still pointing to the head of the block? Try foreach xml-message head messages [ or messages: head messages foreach xml-message messages [ instead. Yours, Jussi -- Jussi Hagman CS in Åbo Akademi University Studentbyn 4 D 33 [juhagman--abo--fi] 20540 Åbo [jhagman--infa--abo--fi] Finland