Exception EStringList IndexOutOfBounds on Delphi 7

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #68462
    cse1970
    Participant

    TsDBNavigator component problem


    procedure TsDBNavigator.InitHints;
    var
    I: Integer;
    J: TNavigateBtn;
    begin
    Exit; // Added this to avoid the exception
    if not Assigned(FDefHints) then begin
    FDefHints := TStringList.Create;
    for J := Low(Buttons) to High(Buttons) do
    if Buttons[J] <> nil then
    FDefHints.Add(LoadResString(BtnHintId[J]));
    end;

    for J := Low(Buttons) to High(Buttons) do
    Buttons[J].Hint := FDefHints[Ord(J)];

    J := Low(Buttons);
    for I := 0 to (FHints.Count – 1) do begin
    if FHints.Strings <> ” then
    if Buttons[J] <> nil then
    Buttons[J].Hint := FHints.Strings;

    if J = High(Buttons) then
    Exit;

    Inc(J);
    end;
    end;

    #68467
    Support
    Keymaster

    Hello!
    This issue will be checked at the nearest days, thank you for the message.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.