| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== POINTER (return last queue entry position) ====== | [[pie draw a pie chart .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[position return record sequence position .htm|{{btn_next_n.gif|Next page}}]] | | || **POINTER(**// queue //**)** {{blk2blue.jpg|blk2blue.jpg}} | **POINTER** | Returns the entry number of the last entry accessed in a QUEUE. | | //queue// | The label of a QUEUE structure, or the label of a passed QUEUE parameter. | The **POINTER** procedure returns a LONG integer specifying the entry number of the last QUEUE entry accessed by ADD, GET, or PUT. The value of **POINTER** is only valid if the ADD, GET, or PUT operation is successful. **Return Data Type:     **LONG **Example:** **Que:Name = 'Jones'              !Initialize key field in sorted queue** **GET(NameQue,Que:Name)           !Get the entry, if available** **IF ~ERRORCODE()                 !If successful** ** ADD(SecondQue,****POINTER****(NameQue))!add the entry to second queue.** **END                    ** **See Also:** [[get read a record or entry .htm|GET]] [[put re write record .htm|PUT]] [[add add an entry .htm|ADD]]