DEFINE CLASS myclass AS form OLEPUBLIC Datasession=2 && private datasession PROCEDURE MyDoCmd(cCmd) &cCmd && just execute parm as if it were a fox command FUNCTION MyEval(cExpr) RETURN &cExpr && evaluate parm as if it were a fox expr ENDDEFINEI forget where I found it - maybe VFP 7 documentation or MSDN (or westwind). Anyway, this guy was called from an Excel Macro and populated a spread sheet with DBF fields. My appologies for not having a proper citation. Check your VFP 7 Help -> VFP COM selections.