Board index » delphi » How to DBCombo's with TabbedNoteBook in Delphi 1?

How to DBCombo's with TabbedNoteBook in Delphi 1?

I'm having a strange problem with notebooks and DBLookupCombo's.  On the
activation of the screen I obviously want all the DBCombo's to have the
correct data in.  To do this I set the DisplayValue.

This works for those where that Tab is currently active, but if you
don't cycle through the whole notebook then only those combo's on the
page that becomes active initially are set!  The on change events
however are set.

The solution to the problem will also have to be tied to the DBNavigator
so making it invisible at startup and cycling throught he pages wont
work.

I hope that someone has a solution

Ray Burch

(R...@Swetenhams.Co.Uk)

 

Re:How to DBCombo's with TabbedNoteBook in Delphi 1?


In article <31E60593.1...@swetenhams.co.uk>, chr...@swetenhams.co.uk says...

Quote

>I'm having a strange problem with notebooks and DBLookupCombo's.  On the
>activation of the screen I obviously want all the DBCombo's to have the
>correct data in.  To do this I set the DisplayValue.

>This works for those where that Tab is currently active, but if you
>don't cycle through the whole notebook then only those combo's on the
>page that becomes active initially are set!  The on change events
>however are set.

>The solution to the problem will also have to be tied to the DBNavigator
>so making it invisible at startup and cycling throught he pages wont
>work.

>I hope that someone has a solution

>Ray Burch

>(R...@Swetenhams.Co.Uk)

Hi,

I don't fully follow your line of thinking, but an idea has occured to me. If
your DBCombo's aren't showing the correct data at startup, then something may
be wrong. The DBCombos will only show the data automatically if the look-up
table has a primary index based on the lookup field.

Sorry if I've caught the bull by the tail, but I hope it helps.

Glen O'Dwyer

Other Threads