Project resources

The Project.Resources object provide access to string resources saved within the project. The items are defined and administrated in the Project Builder application. Each item is a key / value pair. When the project is configured to support several languages additionally for each language a translation can be attached to the item. The access in script follows the following syntax:

Project.Resources.GetString("MyKey")

This can be used for support multiple languages from script. This might be useful for messageboxes and for scripted Formatters, Validation Methods or Document Review Methods to return a translated error message.

' Project Script
Private Sub ValidationMethod_Validate(ByVal pValItem As CASCADELib.ICscXDocValidationItem, ByRef ErrDescription As String, ByRef ValidField As Boolean)
   ' ....
   ErrDescription = Project.Resources.GetString("ValidationMethodError")
End Sub