Path: utzoo!utgpu!watserv1!watmath!att!att!tut.cis.ohio-state.edu!dsac.dla.mil!dsacg3.dsac.dla.mil!dsacg2.dsac.dla.mil!nfs0294 From: nfs0294@dsacg2.dsac.dla.mil (Glen Midkiff) Newsgroups: comp.databases Subject: Re: Clipper SETPRC() function question Message-ID: <2759@dsacg2.dsac.dla.mil> Date: 28 Nov 90 20:41:23 GMT References: <2758@dsacg2.dsac.dla.mil> Organization: Defense Logistics Agency Systems Automation Center, Columbus Lines: 23 From article <2758@dsacg2.dsac.dla.mil>, by nam2254@dsacg2.dsac.dla.mil (Tom Ohmer): > An application that I have been tasked to modify uses the SETPRC() > function in a few places. The use of and need for this function > is not obviously clear to me. I am familiar with using @...SAY > commands to print text and have read the manual and Straley's book, > but would appreciate an experienced guru's explanation. Many thanks > in advance. > -- My understanding of the SETPRC() function is that it allows you to reset the current print position (row,col). For instance, if you send a printer initialization string to the printer with an @...SAY, then write your first report line with an @ 0,0 SAY ...., you will get a page eject because after the SAY of the init string, your current position is equal to the number of characters in the init string. In order to print at 0,0 you will get a page eject. However, if you first do a SETPRC(0,0) before printing the first line, then the internal print position is at 0,0 so no eject is required. I hope I am not misleading you, by giving bum info, but this seems to be the way it works for me. -- |-----------------------------------------------------------------------| |Glen Midkiff osu-cis!dsac!gmidkiff | |From the Internet: gmidkiff@dsac.dla.mil | |Phone: (614)-238-9643 @DLA, Systems Automation Center, Columbus, Oh. |