====== CreateQueue Function ====== ==== Description ==== Creates a reference to a queue on an open engine created by the [[createengine|CreateEngine]] function. ==== Syntax ==== Error = CreateQueue(Queue, Engine, QueueName, DatabaseName, UserName, Password) ==== Parameters ==== The CreateQueue function has the following parameters. ^Parameter^Description^ |Queue|Handle for the queue. Pass null. CreateQueue will return a queue handle.| |Engine|Handle obtained from a call to [[createengine|CreateEngine()]].| |QueueName|Use the same name passed as the named pipe name in the call to [[createengine|CreateEngine()]].| |DatabaseName|The database .dbt file to use.| |UserName|UserName to log into the database.| |Password|Database password\\ || ==== See Also ==== [[closequeue|CloseQueue()]], [[createengine|CreateEngine()]] ==== Example ==== // Create a queue on an engine created by CreateEngine in the SYSPROG account. Error = CreateEngine(Engine, "\\.\REVCAPI_TEST", "SYSPROG",**CREATE_ENGINE_OPEN_ALWAYS$, 1)** Error = CreateQueue(Queue, Engine, "", "", "SYSPROG")