HELLO, YOU COULD HELP ME GENERATE A TXT FILE WITH THE CONTENT OF A QUEUE. Thank you
You can look in the free debuger class on @MarkGoldberg github repository.
It has an example of dumping a queue to a text file. Search for the DumpQue method.
!ABCIncludeFile(DEBUGER)
COMPILE('****ASCII',_C60_)
PRAGMA ('link (C%V%ASC%X%%L%.LIB)')
!END-COMPILE('****ASCII',_C60_)
OMIT('****ASCII',_C60_)
INCLUDE('_ver_.inc'),ONCE !sets _VER_ based on the CW version
LinkClass_Ascii CLASS,TYPE,LINK('C' & _VER_ & 'ASCX.LIB'); END !Purpose is to link in the ASCII driver
!END-OMIT('****ASCII',_C60_)
!-Rely On Once due to IDE Navigation Bugs-! OMIT('*** ifdef Debuger ***',ifDef_Debuger)
!-Rely On Once due to IDE Navigation Bugs-!ifDef_Debuger EQUATE(1)
INCLUDE('TUFO.INT'),ONCE
SECTION('eqDBG')
eqDBG EQUATE('<4,2,7>') ! CTRL+D, CTRL+B, CTRL+G !added 5/22/03 by Mark Goldberg (to be used by Assert(x,y) as in Assert(0,eqDBG&'my message')
SECTION('eqDBG -end')
MAXMSGLEN EQUATE(1000) !MG: I doubt that this is an OS limitation
This file has been truncated. show original
and
MEMBER
!Region Module Level
!Updates (to copy to the .inc)
!Sept-18-06 MG: changed OMIT/COMPILES for HOWMANY() to be C61 vs. C60
! .DumpControls sort by FEQ
! .ShowControl re-order columns to lead to show columns with more consistent widths first, making it easier to read.
! CREATE:ComboButton in .DescribeType
INCLUDE('debuger.inc'),ONCE
INCLUDE('equates.clw'),ONCE
INCLUDE('FileAccessModes.EQU'),ONCE
Verbose EQUATE(1) !0..N
COMPILE('***',_width32_)
ANSI_NAME EQUATE('A')
! ***
OMIT('***',_width32_)
ANSI_NAME EQUATE('')
! ***
This file has been truncated. show original
another alternative is to spit out the queue to a CSV file which can be viewed in Excel.
Alan Telford wrote an article on this and provided the code in David Harms’ Clarion Magazine in February 2003. Dave has kindly made an archive of the magazine freely available.
go to
https://clarionmag.jira.com/wiki/spaces/archive/pages/399452/ClarionMag+monthly+PDFs+and+source+ZIPs+2003
and download the article and code for February.
There was a later version that handled fields with dimensions (arrays).
Just found it - November 2006.
https://clarionmag.jira.com/wiki/spaces/archive/pages/399449/ClarionMag+monthly+PDFs+and+source+ZIPs+2006
hth
Geoff R
The code in the Debuger class was adapted from Alan Telfords ClarionMag article
I probably should add that if you have StringTheory there is SerializeQueue which will do what you want with one call:
https://www.capesoft.com/docs/StringTheory3/StringTheory.htm#SerializeQueue