eda_get_pdb_name Function
Retrieves the PDB file name from the database.
Syntax
Function eda_get_pdb_name As Integer (NodeName, DatabaseName, BufSize)
Properties
The eda_get_pdb_name function syntax has these parts:
Part |
Description |
object |
An object expression that evaluates to an object in the Applies To list. |
NodeName |
String. The name of the node on which the database resides. |
DatabaseName |
String. Returns the name of the database for NodeName. |
BufSize |
Integer. The maximum size, in bytes, to return in DatabaseName. |
Return Value
Integer. FE_OK if no error.
Remarks
This is the name of the current PDB file loaded by the system (for example, by the DBB RELOAD function or by the eda_reload_database function). The name is returned without the path or extension.
The DatabaseName parameter must be declared either as fixed-length strings of 260 characters or as variable-length strings that are initialized as 260 characters before calling eda_get_pdb_name. The NodeName parameter must be declared either as fixed-length strings of 9 characters or as variable-length strings that are initialized as 9 characters before calling eda_get_pdb_name. For example, you could initialize the NodeName parameter in either of the following ways:
Dim NodeName As String * 9
or
Dim NodeName As String
NodeName = " "