In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

DBCombobox

Foro público de Xailer en español
Responder
Mike Draper
Mensajes: 41
Registrado: Vie Jul 01, 2005 11:59 pm

DBCombobox

Mensaje por Mike Draper »

I notice in the Samples/Datacontrols examples that use the DBCombobox, you
load the aItems property with the data values from the table. When I do not
do that, there are no values in the drop down list.
What is the table is very long? Do all of the values to be displayed have
to be loaded into an array?
Mike Draper
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9441
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

DBCombobox

Mensaje por ignacio »

Mike,
The value of the control is linked with the data field, not the Items
itself. You should fill the combo list manually.
The TDbfDataset has a very handy method for that process (SaveToArray).
That's all.
Regards,
"Mike Draper" <draperm@cogeco.ca> escribió en el mensaje
news:42d7d207$[email=1@ozsrvnegro.ozlan.local...]1@ozsrvnegro.ozlan.local...[/email]
>I notice in the Samples/Datacontrols examples that use the DBCombobox, you
>load the aItems property with the data values from the table. When I do
>not do that, there are no values in the drop down list.
>
> What is the table is very long? Do all of the values to be displayed have
> to be loaded into an array?
>
> Mike Draper
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder