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

REPLACE problem

 [1/5] from: ddalley::idirect::com at: 8-Aug-2000 15:44


Hello: Trying to use REPLACE, I am getting a number of logic errors when implementing the following, to eliminate one file name ("broker.workspace") within a dir-list block ("files"): Manual says: REPLACE target search replace Mine: REPLACE files "broker.workspace" "" The target is a block datatype, the latter two are strings - all are allowed, according to the manual. What's wrong? What's right? -- ---===///||| Donald Dalley |||\\\===--- The World of AmiBroker Support http://webhome.idirect.com/~ddalley UIN/ICQ#: 65203020

 [2/5] from: jelinem1:nationwide at: 8-Aug-2000 15:49


Could it be that your block elements are of datatype file! and your search element is a datatype string! ? - Michael Jelinek [ddalley--idirect--com] on 08/08/2000 10:44:42 AM From: [ddalley--idirect--com] on 08/08/2000 10:44 AM Please respond to [list--rebol--com] To: [list--rebol--com] cc: Subject: [REBOL] REPLACE problem Hello: Trying to use REPLACE, I am getting a number of logic errors when implementing the following, to eliminate one file name ("broker.workspace") within a dir-list block ("files"): Manual says: REPLACE target search replace Mine: REPLACE files "broker.workspace" "" The target is a block datatype, the latter two are strings - all are allowed, according to the manual. What's wrong? What's right? -- ---===///||| Donald Dalley |||\\\===--- The World of AmiBroker Support http://webhome.idirect.com/~ddalley UIN/ICQ#: 65203020

 [3/5] from: ddalley:idirect at: 8-Aug-2000 18:00


On 08-Aug-00, [jelinem1--nationwide--com] wrote:
> Could it be that your block elements are of datatype file! and your search > element is a datatype string! ?
Thanks, Michael. I had tried using the % earlier, but whatever I did failed. -- ---===///||| Donald Dalley |||\\\===--- The World of AmiBroker Support http://webhome.idirect.com/~ddalley UIN/ICQ#: 65203020

 [4/5] from: jelinem1:nationwide at: 9-Aug-2000 9:38


That means you've tried (?): REPLACE files %broker.workspace "" - or - REPLACE files to-file "broker.workspace" "" These work for me. - Michael Jelinek [ddalley--idirect--com] on 08/08/2000 01:00:37 PM From: [ddalley--idirect--com] on 08/08/2000 01:00 PM Please respond to [list--rebol--com] To: [list--rebol--com] cc: Subject: [REBOL] REPLACE problem Re:(2) On 08-Aug-00, [jelinem1--nationwide--com] wrote:
> Could it be that your block elements are of datatype file! and your
search
> element is a datatype string! ?
Thanks, Michael. I had tried using the % earlier, but whatever I did failed. -- ---===///||| Donald Dalley |||\\\===--- The World of AmiBroker Support http://webhome.idirect.com/~ddalley UIN/ICQ#: 65203020

 [5/5] from: ddalley:idirect at: 9-Aug-2000 12:10


On 09-Aug-00, [jelinem1--nationwide--com] wrote:
> That means you've tried (?): > REPLACE files %broker.workspace ""
I am using this one. -- ---===///||| Donald Dalley |||\\\===--- The World of AmiBroker Support http://webhome.idirect.com/~ddalley UIN/ICQ#: 65203020