Function FindBusByName

 

Function FindBusByName( ByVal sName$, ByVal dNomKV#, ByRef nHandle& ) As Long

Purpose: Searches for the bus that has a certain name and nominal kV.

Works in:      OneLiner and Power Flow.

Parameters:     

sName          [in] bus name

dNomKV        [in] bus nominal kV

nHandle       [out] bus handle

Return value:

1               success

0               failure

Remarks:

Example:

 

If 0 = FindBusByName( "Reusens", 132, hDev ) Then GoTo HasError

Print "Bus handle found: ", hDev