|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Library Reference > PDMSystem > DBWLookUp |
Localize a string by picking a value from the messages file
Function DBWLookUp(MessageID)
MessageID |
String containing the declaration of a localized string |
Returns the localized string given a declaration. For a list of all the available messages and strings please open the file DBWorks.MSG or DBFields.MSG with any text editor.
DBWorks maintains a list of all the localized messages, including table and fields names in the file DBWorks.MSG and DBFields.MSG of the DBWorks and of the DBWORKS_SERVER\LANG folders.
This allows us and you to write code that will work no matter which localized version it's running on.
DescriptionFieldName = DBWLookUp("NAME_FIELD_DESCRIPTION")
'in an english installation the variable contains "DESCRIPTION"
'in a french installation the variable contains "DESCRIPTION"
'in a german installation the variable contains "BENENNUNG"
'in an italian installation the variable contains "DESCRIZIONE"
'in a spanich installation the variable contains "DESCRIPCION"