do while x < thisform.pageframe.page3.list3.listcount > x=x+1 > m.lastname = left(thisform.pageframe.page3.list3.list(x),3) > append from c:\phonebook\addresses for lastname = m.lastname > COPY TO C:\phonebook\temp.dbf > MODIFY FILE C:\phonebook\temp.dbf > use >enddoFor starters, please wrap code snippets in < pre > and < /pre > tags (without the embedded spaces.
Select TableOrCursorToStoreResultsIn x=1 do while x < thisform.pageframe.page3.list3.listcount x=x+1 m.lastname = left(thisform.pageframe.page3.list3.list(x),3) append from c:\phonebook\addresses for lastname = m.lastname enddo COPY TO C:\phonebook\temp.dbf Use C:\phonebook\temp.dbf In 0 select temp browseYou can print the contents of Temp.Dbf most easily using a Quick Report, or use the LIST ... TO PRINT NOCONSOLE ... command.