qed::has_property (::quartus::qed)
The following table displays information for the qed::has_property Tcl command:
Tcl Package and Version |
Belongs to ::quartus::qed 1.0 |
|||
Syntax | qed::has_property [-h | -help] [-long_help] -property <property> [-is_set] <object> | |||
Arguments | -h | -help | Short help | ||
-long_help | Long help with examples and possible return values | |||
-property <property> | Name of the property to check | |||
-is_set | Flag indicating that this should only return true if the property is set to something (including a default value) | |||
<object> | Identifier associated with the object, must be unique | |||
Description |
Returns a boolean value indicating whether the given property exists on the specified object. A property can exist without being set. The "-is_set" option causes the command to return true only when the given property exists and is set to any value (including a default value). You should check for the existence of an object's property before attempting to modify it, because getting an object property that does not exist returns a Tcl error. |
|||
Example Usage |
qed::create_object -type project project_A -user_data {this is some data!} # Returns: True qed::has_property project_A -property qpf_path # Returns: False qed::has_property project_A -property qpf_path -is_set # Returns: True qed::has_property project_A -property user_data # Returns: True qed::has_property project_A -property user_data -is_set |
|||
Return Value | Code Name | Code | String Return | |
TCL_OK | 0 | INFO: Operation successful |