Path: utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!polyof!ted From: ted@polyof.poly.edu (A1 ted kapela (staff) ) Newsgroups: comp.os.msdos.apps Subject: Re: DBASE refuses to send CHR(0) to printer. Message-ID: <1990Oct24.155010.7866@polyof.poly.edu> Date: 24 Oct 90 15:50:10 GMT References: <2292@wn1.sci.kun.nl> <271@sc2a.unige.ch> Distribution: comp Organization: Polytechnic University Lines: 40 In article <2292@wn1.sci.kun.nl>, vlsi3@erato.cs.kun.nl (vlsi cursus) writes: > Hi readers, > > I'm writing a small database program using Dbase, which uses the printer. > Therefore I need to send the null character, because it is part of a > printer control code. It is used in the following context: > SET PRINT ON > ?? ....+CHR(0)+.. > | > SET PRINT OFF > > The problem is, the printer doesn't receive the null character (I checked > it with a hex-dump). Does anyone know what how to do it in another way?? > > BTW: it is dbase 3+. I too had the same problem. I found a solution that may or may not work. (If you have an epson or compatible, this should work) When I had the problem, I checked the printer manual to see if there was anything else I could send instead of a CHR(0). Indeed There WAS!. The printer would accept CHR(128) also! This DOES work in dBase III+. Set Print ON ?? . . . +CHR(128)+. . . instead of Set Print ON ?? . . . +CHR(0)+. . . Hope this helps. -- ............................................................................... Theodore S. Kapela (516) 755-4299 [Voice, Days] ted@polyof.poly.edu (516) 473-7746 [FAX] "Another brilliant mind corrupted by education"