Cicode Programming Reference > Cicode Function Categories > Task Functions Introduction > QueWrite


Writes an integer and string onto the end of a queue. The integer and string have no meaning to the queue system, they are just passed from QueWrite() to QueRead(). Queue data is written to the end of the queue. When the data is later read from the queue, it is returned on a first-in-first-out basis.

This function is a blocking function. It will block the calling Cicode task until the operation is complete.


QueWrite(hQue, Type, Str)


The queue handle, returned from the QueOpen() function. The queue handle identifies the table where all data on the associated queue is stored.


The integer to put into the queue.


The string to put into the queue.

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

QueClose, QueLength, QueOpen, QueRead, QuePeek


QueWrite(hQue,2,"Hello there");

See Also

Task Functions