Documentation Center

PassoloApp.OnFilterTransString

When filtering the display of a translation list, this handler is called for each translation string. The handler can decide if the translation string should be in the filtered view or not.

Syntax

OnFilterTransString (TransString As PslTransString, ByVal FilterString As String, Display As Boolean)

Trans String The translation string to be examined

FilterString The filter string from the Filter dialog

Display Set to True if TransString should be in the filter. Set to False otherwise.

Example

REM This filters all strings that include a search text.
REM The search text is entered in the Filter dialog.
Public Sub PSL_OnFilterTransString(TransString As PslTransString, ByVal FilterString As String, Display As Boolean)
  If InStr(1, TransString.Text, FilterString) > 0 Then
    Display = True
  Else
    Display = False
  End If
End Sub