On Tue, 20 Oct 2009, Alex Strickland wrote: Hi,
> I was thinking of the following: > 1. A compiler option to declare a data dictionary declaration so > that statements of the form: > workarea->fieldname > could be validated. > In the case where a DBF exists it could be used as a kind of > "include" file, and there would need to be an alias mapping: > WORKAREA "acc101.dbf" ALIAS accounts > and: > accounts->name > would be validated, and: > accounts->nane > would cause a compile time error. As would: > ackounts->name > In the case where no dbf exists (perhaps a SQL database or the new > "mem:" files), or it is not practical to read a dbf then some syntax > like: > WORKAREA accounts > FIELD accounts->name > FIELD accounts->address ... You can make it yourself using PP: #ifndef FIELD_NAMESPACE_OFF /* declare WORKAREA1 fields */ #xtranslate WORKAREA1-><!field!> => ;; #error WORKAREA1 does not have field: #<field> #xtranslate WORKAREA1->name => WORKAREA1->( _FIELD->name ) #xtranslate WORKAREA1->date => WORKAREA1->( _FIELD->date ) #endif proc main() ? workarea1->name ? workarea1->nane ? workarea1->date return best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour