User Tools

Site Tools


pointer_return_last_queue_entry_position_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== POINTER (return last queue entry position) ====== Previous pageReturn to chapter overviewNext page

POINTER( queue )

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

PUT

ADD

pointer_return_last_queue_entry_position_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1