Mastering PowerBuilder

HomePrevious Lesson: Course 3:: Session 27 :: Page 160
Next Lesson: Course 3:: Session 27 :: Page 180

Running the Translation Utility

In the local language use LanguageDependent() to get the file name and use that help file while calling ShowHelp() function.

There is no difference in coding of SetMicroHelp() because, translation utility translates all the tag values into the local language. When you call SetMicroHelp( This.Tag ), it automatically shows help in the local language. If you call SetMicroHelp() for a DataWindow control, it will not display help for a field within the DataWindow object. You need to write the following code in the 'ItemFocusChanged' event.

If dwo.Tag = "?" or dwo.Tag = "!" Then
        Parent.SetMicroHelp( "" )
Else
	Parent.SetMicroHelp( dwo.Tag )
End If

You need to call functions to find and replace symbolic words such as %1, %2, etc in the message.

HomePrevious Lesson: Course 3:: Session 27 :: Page 160
Next Lesson: Course 3:: Session 27 :: Page 180