>>You mean, simulate this in VFP? You can do it by combining several REPORT FORM ... RANGE together.
>
>No, I need a routine that will parse a string that contains the same information and format.
I'll need it real soon now, too. I'd start with parsing it along the commas (or semicolons, they are default list delimiters , then see if there are hyphens in the chopped parts. Like this
For i=1 to words(lcString, ",;")
lcChop=wordnum(lcString, i, ",;")
if "-"$lcChop
lnPg1=val(wordnum(lcChop,1,"-")
lnPG2=val(wordnum(lcChop,1,"-")
else
store val(lcChop) to lnPg1, lnPg2
endif
do whatever with lnPg1, lnPg2
EndFor
Ummm... I'll use this for myself :)