I want to use the column names from a database table to be displayed as a header of a ListBox. This works fine with the following statement:
MyListBox.HeaderAt(i) = rs.ColumnAt(i).Name
How can I translate the column name based on the localization constants? (e.g. database column name = “kCountry”, localized strings for kCountry are: in French : Pays, in Dutch : Stad…)
Another idea:
I use a TABLE / Record to store the Header. I use only one set (French), but it is very easy to add records / and it is up to you to define the wy to display the correct language from there.
@AlbertoD Thank you, this solves the problem based on the localization constants available in the app. @MarkusR@Emile_Schwarz For large applications it may be more interesting to create a separate table and read this table into a dictionary when the application is started. Thank you for the ideas.