Path: csiph.com!usenet.pasdenom.info!news.albasani.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Resolving macro Date: 3 Sep 2012 06:15:40 GMT Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net mndMPk57j1MosRHgZeW8qAYF/QjCRalr/BdNNivLDMl3Ho+kgnY03GJEzKKgvcFbk= Cancel-Lock: sha1:PTIzb7bsaxFrmLYZ67T0qMhaO0Y= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:4051 Hi Krystian, as David wrote: local variables are not maintained. Unfortunately, DBServer:Eval does not let you pass parameters to the codeblock, so this cannot work, and DBServer:Eval cannot be used - you need to loop the DBServer yourself. You could use an object and it's Eval method class MyCB export cKody as string method Eval( oSrv ) class MyCB cKody += oSrv:Anyfield return self function ServerEval( oSrv ) local oCB as MyCB oCB := MyCB{} oSrv:GoTop() while ! oServer:EOF Eval( oCB, oSrv ) oServer:Skip() end return oCB:cKody HTH Wolfgang