RhoTu
IRobotSoft Newbies

I Love IRobotSoft
Posts: 10
|
I have an irb that functions using the UI and using a cmd line. Unfortunately both require UAC acknowledgment. Since these are being fired off by an application I am developing using Delphi I thought I would try the OCX. I was able to import the type_lib and generate a .pas unit. when I run this simple example I get a zero return from run and all of the others indicating success but no log file or the expected csv file are generated. I have checked all file and directory spellings and each is correct. Any suggestions as to what I am doing wrong or missing? procedure TForm1.btn1Click(Sender: TObject); var irob:TIrobotX; i:integer; begin irob:=TIrobotX.Create(nil); if iRob.setIrbFile('c:\Irobotsoft\Yahoo splits.irb','')<0 then showMessage('Failed setIRBfile'); if iRob.setLogFile('C:\Hilltop Securities\downloads\irb.log',255)<0 then showMessage('Failed setLogFile'); if irob.prepareRobot('c:\hilltop securities\downloads\')<0 then showMessage('Failed prepareRobot'); i:=irob.run('YahooSplits',1); if i<0 then showMessage('Failed run') else showMessage('result: '+intToStr(i)); end;
|