TsListBox Problem with PaintListBox Procedure

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43951
    mcone
    Participant

    This problem continues in v7.23.

    #43976
    Support
    Keymaster

    Please check the version 7.24 – I have added some checks there, but I can't understand why you have this error.

    Maybe you can show me a demo?

    Problematic line can't be commented because Data property may be used in many projects…

    #44002
    mcone
    Participant

    I found the problem – and it was my fault. Apparently v6 must have been tolerant of this mistake but v7 was not. Thank you for checking anyway – and my apologies.

    Example of logic error:

    Code:
    sListbox_EntityControl.items.clear;

    for iX := 1 To iEntSize do
    begin
    sListbox_EntityControl.items[iX-1] := szText;
    end;

    Repaired logic:

    Code:
    sListbox_EntityControl.items.clear;

    for iX := 1 To iEntSize do
    begin
    sListbox_EntityControl.items.add(szText);
    end;

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