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

[REBOL] Attempt question

From: kpeters::vu-ware::com at: 4-Mar-2005 10:50

Hi list= ~ Why does my code below fail? I believe I am= doing exactly what the help tells me ... Again, thanks for any pointers! Kai ***************************************** relevant part of my script: ***************************************** foreach pdf pdfs [   cururl:   append copy= baseurl pdf      fname:    append= copy %/c/city/pdfs2/ pdf   print pdf      if not value: attempt= [        write/binary fname= read/binary cururl   ]   [ print append "Problem with "= replace/all pdf " " " " ]    ] ***************************************** From the help @ http://rebol.com/docs/word= s/wattempt.html[0]: *****************************************     if not value:= attempt [load %data] [print Problem ]     Problem ***************************************** rebol console output ***************************************** REBOL/View 1.2.55.3 ** Script Error: not is missing its value= argument ** Near: if not attempt [     write/binary fname= read/binary cururl] REBOL/View 1.2.1.3.1 ** Script Error: attempt has no= value ** Where: halt-view ** Near: if not attempt [     write/binary fname= read/binary cururl ]