[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: WrapDepth Function
Kathleen,
What version of SQR are you using and on what platform?
Peter
"Bolton, Kathleen" wrote:
> I'm trying to use the 'WrapDepth' command to determine the number of lines
> needed to print a comment field. Specifically, it's for our Purchase Orders
> which have varying degrees of comments per PO.
>
> Here is my logic:
> I'm trying to use 'wrapdepth' to determine the number of print lines I need
> for a variable length comment field. The problem I'm having is that when I
> use 'wrapdepth' the SQR just hangs. Any suggestions from your experience?
>
> Here is the portion of the code:
>
> let #depth = wrapdepth(&CMMTL.COMMENTS_2000,120,1,'<13>','<10>')
>
> print &CMMTL.COMMENTS_2000 (#line, 6) wrap 120 50 ON=<13> STRIP=<10>
> Next-Listing skiplines=0 need=#depth
>
> *******************
> It makes it through the 1st comment line, but on the 2nd (and subsequent)
> comments it hangs right before the 'let #depth' command --- I then have to
> manually cancel the SQR. When I use a constant literal in the wrapdepth it
> works fine --- ex.
> wrapdepth('Comment',120,1,'<13>','<10>'). It just doesn't seem to like me
> passing the database comment field.
>
> Do you know of any problems with the wrapdepth command or what I'm doing
> incorrectly?
>
> Kathy Bolton, Systems Analyst
> West Chester University
> kbolton@wcupa.edu