LPARAMETER oFoxCode local lcs sd=set("date") set date ymd set cent on lcIncl="Include\Appl.h" do case case atc("dum",curd())>0 lcIncl="other\fw.h" case atc("apvfp",curd())>0 lcIncl="GenerAll.h" *-- etc etc, set it to include the proper one for the current type of projectds endcase text to lcs noshow textmerge *** *** <<justfname(oFoxcode.Filename)>> *** * <<datetime()>> * <<version()>> #include <<lcIncl>> *** *** ---------------------------------- *** ~ endtext oFoxCode.ValueType="V" set date &sd return lcsOf course, you can add your own stuff to this and accommodate whichever specifics you may have.