Results 1 to 1 of 1

Thread: BankIndexToMSBox - Out of range

  1. #1
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default BankIndexToMSBox - Out of range

    Simba Code:
    procedure GetBankSlots;
    var
      BBox : TBoxArray;
      X, Y, I : Integer;
      UpTexts : TStringArray;

    begin
      OpenTheBank;
      FixBank;
      BBox[0]:= BankIndexToMSBox(1);  //THIS LINE
      BBox[1]:= BankIndexToMSBox(2);
      BBox[2]:= BankIndexToMSBox(3);
      for I:= 0 to......
    Error: Out Of Range at line 296
    Not really sure what could be causing that. Any ideas? There is more after the for..to..do loop, but it's not relevant.


    EDIT: Fixed. Changed to
    Simba Code:
    BBox:= [BankIndexToMSBox(1), BankIndexToMSBox(2), BankIndexToMSBox(3)];

    EDIT2: Original error was because I didn't set array length.
    Last edited by Rich; 03-29-2011 at 04:02 PM.
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •