Topic: Tablegrid and SQL button error messages

Hello all,


Since a few days, while working on my long time project, I receive two kinds of errors :

  • While setting up a Tabelgrid or a SQL button, when I click OK to validate I get a "Access violation at address xxxx"

  • When running the application a click on a SQL button with a simple query triggers a "List Index out of bounds (0)"


What is surprising is that older SQL buttons (set up a long time ago) do not trigger the same error and work fine.


I'm using v3.5b, the latest version I guess.


Any idea ?


Cheers


Math

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Tablegrid and SQL button error messages

Hello all,


Little addition if that can help identify the problem because I found the source of the error.


On the Form I had a Tablegrid and a couple of SQL Query buttons.
Everything worked fine until I added a combobox to the form, manually filed with this code :


    folder_reading.ComboBox3.Clear;
    folder_reading.ComboBox3.Items.add('DIM files (IMxxxx.zip)');           //index0
    folder_reading.ComboBox3.Items.add('Exe files (old DAZ sku format)');   //index1
    folder_reading.ComboBox3.Items.add('Rar files');                      //index2
    folder_reading.ComboBox3.ItemIndex := 0;

With this code added, clicking on a SQL Query button triggers the error message "Index out of bound (0)".


After investigation, I got ride of the last line :

    folder_reading.ComboBox3.ItemIndex := 0;

and now the error message is gone.


Still, this is stange smile


Cheers


Math

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: Tablegrid and SQL button error messages

Please make simple project with this error, I will test it.

Dmitry.