SelectbyName2 Method (View Object)

Scope: Schematic editor

Object: View Object

Prerequisites: None

Selects objects by name.

Usage

View.SelectByName2(ByVal lpszObjName As String, ByVal bAddSelect As Boolean) As Boolean

Arguments

lpszObjName

String to compare to the label of each object. To select an object, its label must match the lpszObjName string.

bAddSelect

Indicates whether or not to add the newly-selected items to the existing selection list.

True - add the items to the existing selection list. False - creates a new selection list and adds the items to that selection list.

Return Values

As Boolean. True - indicates that at least one object with a label matching lpszObjName was found. False - indicates that there were no objects found with a label matching lpszObjName.