AR.HFN@forsythe.stanford.edu (Hooshyar Naraghi) (12/19/89)
dBASE users: Does anybody know how one would go about counting the number of lines in a memo field in Foxbase+/Mac (version 2.0)? Is there a utility can can be run from within a fox application to accomplish the above as a work around? I am writing the code to print memo fields from a data base, but I don't know where to insert the page eject command since the # of lines per memo field is a variable. Thanks, Hooshie F. Naraghi (415) 723 - 3790 AR.HFN@forsythe.stanford.edu
awd@dbase.UUCP (Alastair Dallas) (01/03/90)
In article <6570@lindy.Stanford.EDU>, AR.HFN@forsythe.stanford.edu (Hooshyar Naraghi) writes: > Does anybody know how one would go about counting the number of > lines in a memo field in Foxbase+/Mac (version 2.0)? > ... > Hooshie F. Naraghi This doesn't help you, but dBASE IV can count the number of lines in a memo field using the MLINE function. The problem is that not only is it data-dependent, the SET MEMOWIDTH TO value must be considered, as well. If dBASE IV were available for the Mac, at least you'd have an expensive solution. As it is, you're stuck writing some sort of an XCMD. But even that approach will probably require that SET MEMOWIDTH be invariable. /alastair/