Hi REBOL-List!

given this code snippet::


titles: ["Akne" %basis14.htm " Alkoholischer Leberschaden" %basis15.htm "
Alzheimer" %basis16.htm ]


foreach [x y] titles [ switch second :x [
                                #"a" [either exists? %a.html [save %a.txt
"test"][print "a.html exists!"]]
                                 #"b" [ print "do that"]
                                 #"c" []
                                 #"d" [print "hoo" ]
                                 #"e" [print "gotcha"]
                                 #"f" []
                                 #"g" []
                                 #"h" []
                                 #"i" []
                                 #"j" []
                                 #"k" []
                                 #"l" []
                                 #"m" []
                                 #"n" [print "bogey"]
                                 #"o" [print "stark"]
                                 #"p" [Print "balloo"]
                                 #"q" []
                                 #"r" []
                                 #"s" []
                                 #"t" []
                                 #"v" []
                                 #"v" []
                                 #"w" []
                                 #"x" []
                                 #"y" []
                                 #"z" []]]


If the block "titles" is not too big (30-40 entries) the snippet runs fine,
but the actual list generates more than 180 enties, the script runs but I
get this error:

** Script Error: Out of range or past end.
** Where: switch second :x [

Can someone tell me what is wrong?

Sharriff Aina
med.iq information & quality in healthcare AG


-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to