Application_SelectComponent Event

Scope: Schematic editor

Object: Property Object

Prerequisites: None

The Application_SelectComponent event is used in a DataBook script to update a third-party viewer when selecting different components.

Usage

Sub Application_SelectComponent (ByVal arg As Object)

Arguments

arg

A row of properties selected in the Component Search results window.

Description

Applies to the Properties object (see Property Object) and is called by the script when a row is selected in the DataBook Component Search results window.

Examples

This example displays a message box listing the properties of the selected row:

Function Application_SelectComponent(Attributes) 
   ' 
   ' 
   dim sAttData 
   For Each attr In Attributes 
      attrName = attr.Name 
		attrValue = attr.Value 
      sAttData= sAttData & CHR(10) & attrName & "=" & attrValue 
   Next 
   MsgBox "The selected properties are:" & CHR(10) & sAttData,,"Summary" 
End Function