I have a PopupMenu that lets me choose the MediaType.
If the MediaType is a disk then a label should read “Number of disks ” on English systems and “Anzahl Disks” on German ones etc
If the MediaType is a book then a label should read “Number of pages ” on English systems and “Anzahl Seiten ” on German ones etc
I could do it with a long Select case statement for all the languages, but is there a more elegant way of doing this?
TiA
Markus
Sascha_S
(Sascha S)
October 10, 2017, 11:33am
2
Isn’t this what Dynamic Constants are made for?
You create a Dyn.Const. and give it an English and German String/Text and when the User selects an entry from the PopUpMenu, you will change the label.Text using the Dyn.Const. for “books” or “disks”?
Found my problem. Overlooked a # and wrote
if me.text = “CD” OR me.text = “DVD” OR me.text = “Blu-Ray” then lblNumberOfDisksOrPages.text = #kNumberOfDisks
instead of
if me.text = “CD” OR me.text = “DVD” OR me.text = “Blu-Ray” then lblNumberOfDisksOrPages.text = kNumberOfDisks
Thanks.