Is there a method like SetClientData but for string pointers instead of numeric ones?

Hi!

I have an application where I have a mix of string and integer indices
from a database. For the numeric ones, I am using "SetClientData" to
associate their description with the indices at the wxComboBoxes or
wxChoices.

Is there something that works also for string IDs? One example --- very
bad one, I must admit --- would be to associate "St." with "Street" on
one of these widgets, so that I can get the key right from the chosen
option, instead of having to make another lookup somewhere else.

TIA,

···

--
Godoy. <godoy@ieee.org>

Jorge Godoy <godoy@ieee.org> writes:

I have an application where I have a mix of string and integer indices
from a database. For the numeric ones, I am using "SetClientData" to
associate their description with the indices at the wxComboBoxes or
wxChoices.

Is there something that works also for string IDs? One example --- very
bad one, I must admit --- would be to associate "St." with "Street" on
one of these widgets, so that I can get the key right from the chosen
option, instead of having to make another lookup somewhere else.

OK, it seems that SetClientData itself handled this safely, either with
its 'Append' or 'SetClientData' forms.

Be seeing you,

···

--
Godoy. <godoy@ieee.org>