Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-02

TDBLookupComboBox listing from TMemDataSet

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Everton Vieira

If a set the LookupCache to True they read, but generates error on insert: can`t convert null to string. If a set the LookupCache to False they don`t read, but is able to insert and modify.

Anyone knows anything about it?

Reply by email

Everton Vieira
to Everton Vieira

Sorry, they are not able to insert or modify, they make nothing when LookupCache is False.

Everton Vieira wrote
If a set the LookupCache to True they read, but generates error on insert: can`t convert null to string. If a set the LookupCache to False they don`t read, but is able to insert and modify. Anyone knows anything about it?

Reply by email

Luiz Americo Pereira Camara
to Everton Vieira
Everton Vieira wrote
Sorry, they are not able to insert or modify, they make nothing when LookupCache is False.

What Lazarus version are using?

Versions from trunk have no difference when LookupCache is True or False

Can you post a simple example?

Luiz

Reply by email

Everton Vieira
to Luiz Americo Pereira Camara

In the version 0.9.31 work out.

But as i said in the bug tracker, i`ve used a dblookupcombobox with a memdataset because i needed to list some values and save others, the keys. Despite i had a fixed list of values i had to use a dblookupcombobox instead of a simple dbcombobox because he does not have any option to list some values and save others like the dbradiogroup has. Which is a common use of it, by example, to list the names and save the initials only. Well, let here too an appel, that i`m sure would be a lot of useful in a lot of cases.

Luiz Americo Pereira Camara wrote 18 lines
On 10/2/2012 17:03, Everton Vieira wrote: > Sorry, they are not able to insert or modify, they make nothing when LookupCache is False. > What Lazarus version are using? Versions from trunk have no difference when LookupCache is True or False Can you post a simple example? Luiz -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email