select name as cName, type as cType ; from myproject.pjx ; where type <> 'H' ; order by cType ; into cursor crsFilesIn VFP 9, you can get much more useful results:
SELECT type as cType, CAST(CHRTRAN(name, CHR(0), []) as V(90)) as cName ; FROM myproject.pjx ; WHERE type <> 'H' ; ORDER BY cType, cName