Issue: TRSChooseOption.optionsExist throws access violation error

  1. issueid=163 12-13-2013 08:31 PM
    SRL Member
    TRSChooseOption.optionsExist throws access violation error
    re: title

    TRSChooseOption.optionsExist throws an access violation error something because of it's code:

    Simba Code:
    function TRSChooseOption.optionsExist(options: TStringArray; matchPercent: extended = 1.00): boolean;
    var
      opts: __TOptionArray;
      i, j: integer;
    begin
      result := false;

      if (not self.isOpen(false)) then
        exit;

      opts := self.__getOptions();

      {a line should be added here to check that the length is indeed above 0 before starting the for loop}

      for i := 0 to high(opts) do
        if (isArrInStr(options, opts[i].str)) then
        begin
          print('TRSChooseOptions.optionsExist(): result = true');
          exit(true);
        end;

      print('TRSChooseOptions.optionsExist(): result = false');
    end;
Issue Details
Issue Number 163
Project SRL Bugs and Suggestions
Status Resolved
Users able to reproduce bug 0
Users unable to reproduce bug 0
Assigned Users (none)
Tags (none)




  1. 01-20-2014 04:56 AM
    Issue Changed by Ashaman88
    • Status changed from Unconfirmed to Resolved
+ Reply