Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5178

Re: Overwriting Today and Seconds

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" <invalid@invalid.invalid>
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 <au9hppFhfmvU1@mid.individual.net> (permalink)
References <klnsqb$i66$1@dont-email.me>
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 <klnsqb$i66$1@dont-email.me>
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

Show key headers only | View raw


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

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Overwriting Today and Seconds "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-04-30 09:48 +0200
  Re: Overwriting Today and Seconds "Wolfgang Riedmann" <wriedmann@gmail.com> - 2013-04-30 10:11 +0200
  Re: Overwriting Today and Seconds Malcolm G <malcolm-news2012delete@delete.jobstream.com> - 2013-04-30 09:24 +0100
  Re: Overwriting Today and Seconds "Karl-Heinz" <invalid@invalid.invalid> - 2013-04-30 11:37 +0200
    Re: Overwriting Today and Seconds "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2013-04-30 12:07 +0200

csiph-web