Forum > Databases

[resolved]Debugging SQLQuery.EOF loop with a strange SQLQuery.Next code redirect

<< < (4/4)

indydev:
I finally got a chance to look at this more.

By removing the TDBListBox and replacing it with a TListBox. The problem disappears! No other changes.

I will note that the TDBListBox does not have a published OnSelectionChange event, so I had to assign it in the FormCreate method when using TDBListBox.  With TListBox I just assigned it in the Events panel. That is the only difference.

I don't know why. I appreciate your help with this nonetheless.

indydev:
After reading an article about casting pointers as TObject not being a good idea, I have created a class with an integer property. `TSessionData.Index` where index is an integer.

I have to create and destroy the object on my own, but this appears to be the better way.

Navigation

[0] Message Index

[*] Previous page

Go to full version