` Passing a Queue to a procedure (TYPE'd queues) (Shawn Mason ) - Icetips Article
Icetips - Templates, Tools & Utilities for Clarion Developers

Templates, Tools and Utilities
for Clarion Developers

Icetips Article

Back to article list   Search Articles     Add Comment     Printer friendly     Direct link  

Par2: Passing a Queue to a procedure (TYPE'd queues)
1999-07-27 -- Shawn Mason
 
It can be a little tricky. You need to define a queue in your includes (or globally) with a TYPE attribute. Then create the queue in both procedures using a LIKE your TYPE queue. When you pass the queue, make it as a STRING parameter instead of a queue (a queue parameter will not compile). When you need the components of the queue in the procedures use the following dot syntax: MyLocalProcQueueName.MyQueueField This will allow you to read/write to the individual fields in the queue whether in the calling or called procedure. A lot of this is covered in the help file under TYPE.


Today is November 21, 2024, 8:04 am
This article has been viewed 35216 times.



Back to article list   Search Articles   Add Comment   Printer friendly

Login

User Name:

Password: