Subject Re: printer paper source
From Mervyn Bick <invalid@invalid.invalid>
Date Tue, 11 Aug 2020 19:56:00 +0200
Newsgroups dbase.getting-started

On 2020-08-11 18:43, Ken Mayer wrote:

> This is what I get:
>
> 0
> 0
....> 0
> 0

In other words, just a lot of nothing. :-)

It shows that, somehow, HP didn't get round to writing that last paper
name into the firmware.

If the code that prints out the results in PaperSize.prg and
PaperBin.prg is changed to the following it would ensure that there are
no blanks.

    local a, i
    a  =  getPapers( cDevice, "")
    for i = 1 to int((a.size + 1) / 2)
        ?     iif(a[i, 2] = '','?',a[i,2])
        ??    " - "
        ??    iif(a[i, 1] = '','?',a[i,1])
    endfor

What I find strange is that the Inspector can see the value for that
last paper name.  I wonder what dBASE uses to get the paper names.

Mervyn.