BryceTheCoder Posted December 2, 2015 Share Posted December 2, 2015 Hey Wanted! So.. I have no idea why it's giving me this runtime error. It's inside OCR.scar and when I try to call this: if UpTextContains('Bank') then I get this error: Line 72 OCR.scar Out Of Range Quote Link to comment Share on other sites More sharing options...
Wanted Posted December 3, 2015 Share Posted December 3, 2015 You're not calling SetUpOSI; in the beginning of your script resulting in the necessary initial functions to take place resulting in a runtime error from an array being assigned who's length hasn't been defined yet. TL;DL put SetUpOSI 1 time at the beginning of your script (not within a loop) The basic template for any RS07 OSI Script is program New; {$DEFINE RS07} {$I OSI\OSI.scar} procedure ScriptTerminate; begin FreeOSI; end; begin SetUpOSI; end. Quote Link to comment Share on other sites More sharing options...
BryceTheCoder Posted December 3, 2015 Author Share Posted December 3, 2015 You're not calling SetUpOSI; in the beginning of your script resulting in the necessary initial functions to take place resulting in a runtime error from an array being assigned who's length hasn't been defined yet. TL;DL put SetUpOSI 1 time at the beginning of your script (not within a loop) The basic template for any RS07 OSI Script is program New; {$DEFINE RS07} {$I OSI\OSI.scar} procedure ScriptTerminate; begin FreeOSI; end; begin SetUpOSI; end. LMFAO I'm an idiot! Thanks Quote Link to comment Share on other sites More sharing options...