# (tblnext table-name \[flag\]) [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <!-- help-structure:notice --> > **Source status:** This source topic has 1 recorded inherited issue(s). [Source issue details](../../../Source%20Issues.md). <!-- /help-structure:notice --> <a id="289"></a> ## (tblnext table-name \[flag\]) --- Get me the next item in the table. --- This function finds the first (or next, depending on the *flag*) instance of a symbol type in the drawing table. The argument *table-name* represents the name of symbol type to search for. Valid *table-name*s are: | Table-name | Meaning | | --- | --- | | "appid" | Application identification. | | "block" | Block names. | | "dimstyle" | Dimension style names. | | "layer" | Layer names. | | "ltype" | Linetype names. | | "style" | Text style names. | | "ucs" | UCS names. | | "view" | View names. | | "vport" | Viewport names. | First, the **tblnext** function returns the first specified symbol in the table. When the symbol is found, it is returned as a list of [dotted pairs](../../../Source%20Issues.md#issue-c791ed8899c80323). Used repeatedly, the next symbol is returned in order. When no more symbols exist in the list, *nil* is returned. When the *flag* argument is supplied (typically as T), the search begins from the top of the table. **Example** | Code | Comments | | --- | --- | | (**tblnext** "block" T) | *Gets first block.* | | ((0 . "BLOCK") | *Symbol type.* | | (2 . "MYBLOCK") | *Block name.* | | (70 . 0\) | *Flags.* | | (10 0.0 0.0 0.0) | *Insertion point.* | | (-2 . \<Entity name: 1ff0558\>)) | *Entity Name.* | **Tell me about...** [(entget entity-name \[application-list\])](%28entget%20entity-name%20-application-list-%29.md) [(tblobjname table-name symbol)](IDR_LISP_B290.md) [(tblsearch table-name symbol \[flag\])](%28tblsearch%20table-name%20symbol%20-flag-%29.md) [(vports)](%28vports%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/%28tblnext%20table-name%20-flag-%29.md)