Hold off ... -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Bruce A. Chitiea Sent: Monday, March 10, 2014 9:44 AM To: RBASE-L Mailing List Subject: [RBASE-L] - PLUGIN RBFileOperations Error
All: I'm building a routine to automatically rename a large number of serially-named files. The Plugin reports an error: "-ERROR- Wrong OPERATION parameter ". The relevant code from inside the loop: ... SELECT (CTXT(DocumentID)) + INTO vDocumentID INDIC iv1 + FROM Document + WHERE DocSeqNO = .vLoopCounter SET VAR vDocSeqNO = (CTXT(.vLoopCounter)) SET VAR vBuildSourceString = '(.vSourcePATH + .vDocumentID + .vFileExtLABL )' SET VAR vBuildTargetString = '(.vTargetPATH + .vDocSeqNO + ''_'' + .vDocumentID + .vFileExtLABL )' SET VAR vSourceString = &vBuildSourceString SET VAR vTargetString = &vBuildTargetString PLUGIN RBFileOperations vResult + |OPERATION RENAME_FILES + |SOURCE .vSourceString + |TARGET .vTargetString ... Watch variable values all "check out": vSourcePATH = D:\0TEST\0SOURCE\ vTargetPATH = D:\0TEST\0SOURCE\ vFileExtLABL = .pdf vLoopCounter = 20001 vDocumentID = 20258 vDocSeqNO = 20001 vBuildSourceString = (.vSourcePATH + .vDocumentID + .vFileExtLABL ) vBuildTargetString = (.vTargetPATH + .vDocSeqNO + '_' + .vDocumentID + .vFileExtLABL ) vSourceString = D:\0TEST\0SOURCE\20258.pdf vTargetString = D:\0TEST\0SOURCE\20001_20258.pdf vResult = -ERROR- Wrong OPERATION parameter Anything obvious to anyone but me? Bruce

