Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Karl-Heinz" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: Overwriting Today and Seconds Date: Tue, 30 Apr 2013 11:37:55 +0200 Lines: 35 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Trace: individual.net o7uxggQeA95pkxntNebrXwg8LtxnCZJ917XTI/00m0wfDm78A= Cancel-Lock: sha1:48sBUK1KO2HVoNDu3tLm3bWbU1E= In-Reply-To: X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7600.16807 Xref: csiph.com comp.lang.clipper.visual-objects:5178 Hi Arne, >I would like to overwrite the two functions Today and Seconds. For one >customer I have to adjust the OS date and time using a time zone model. But >I need also the originally functionality, calling the original functions in >the VO28Run dll or having a substitute for both functions. 1. To be able to use the original functionality later on, import the desired function with a different name. 2. Overwrite the original function and add your business logic. ------------------------ _DLL FUNCTION DefaultToday() AS DATE PASCAL:VO28RUN.Today ------------------------- FUNCTION Today() AS DATE PASCAL LOCAL d AS DATE IF Specialcondition d := .... ELSE d := DefaultToday() ENDIF RETURN d --------------------- regards Karl-Heinz