Documentation Center

PassoloApp.OnFilterSourceString

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

Syntax

OnFilterSourceString (SourceString As PslSourceString, ByVal FilterString As String, Display As Boolean)

SourceString The sourced string to be examined

FilterString The filter string from the Filter dialog

Display Set to True if SourceString 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_OnFilterSourceString(SourceString As PslSourceString, ByVal FilterString As String, Display As Boolean)
  If InStr(1, SourceString.Text, FilterString) > 0 Then
    Display = True
  Else
    Display = False
  End If
End Sub