WildCardCharacter property (WinStudio scripts)

Applies To

IWSApplication interface

Definition

Returns or sets a single-character string that contains the value of the wildcard character used in queries.

Get Syntax

Application.WildCardCharacter

Set Syntax

Application.WildCardCharacter = "char"

where char represents a single-character string.

Remarks

The wildcard character can only be a single character.

注意:You can confirm this setting using the User Preferences.

Example

This code first retrieves and displays the current wildcard character value and then sets it to be an asterisk (*).


Sub Main()
   Application.ShowMessage("The current wildcard character is " _
      & Application.WildCardCharacter & ".")
   Application.WildCardCharacter = "*"
End Sub