dni::index_collection (::quartus::dcmd_sdc_collection_api)
The following table displays information for the dni::index_collection Tcl command:
Tcl Package and Version |
Belongs to ::quartus::dcmd_sdc_collection_api 1.0 |
|||
Syntax | dni::index_collection [-h | -help] [-long_help] <collection> <index> <index2> | |||
Arguments | -h | -help | Short help | ||
-long_help | Long help with examples and possible return values | |||
<collection> | The base collection | |||
<index> | The index to locate an object in the collection | |||
<index2> | The second index to locate an item in the collection. If present, a list of objects between index and index2 in the base collection will be used to create a new collection | |||
Description |
Given a collection and an index, if the index is in range, create a new collection containing only the single object. Optionally a second index can be passed to create a new collection with the objects between the two indices in the base collection. |
|||
Example Usage |
set new_collection [::dni::index_collection $collection 0 10] |
|||
Return Value | Code Name | Code | String Return | |
TCL_OK | 0 | INFO: Operation successful |