Home > Archive > Clarion > January 2006 > Dynamic queue reference
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Dynamic queue reference
|
|
| Rene Simons 2006-01-10, 3:55 am |
| Hi all,
Maybe what I would like to do is impossible.
I have an app with several queues.
The processing of these queues is coded in just one procedure.
I pass the reference to the queue to the procedure like
MyQueue Queue
field1 string
field2 string
end
queueRef &queue
queueRef &=3D MyQueue
This works fine, but only for MyQueue
The problem is that MyQueue is the hard-coded name of my original queue
and I want
the name of the queue to be 'soft'-coded. The code would look like sort
of
queueRef &=3D LOC:QueueName
I other words: How can I obtain a reference to any queue without having
to worry
about hard-coded queue-names?
Does anyone know how to establish that??
Thanks,
Ren=E9 Simons
The Netherlands
| |
| Mancha 2006-01-10, 3:55 am |
| Check the help on WHAT, WHO, WHERE commands, this will solve your
problem, but you should change the approach to handle the queue. Is not
the same as working with a fixed names queue.
Andres Sanchez
Monterrey Mexico
| |
| Rene Simons 2006-01-11, 6:55 pm |
| Thanks Andres!!
|
|
|
|
|