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


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

Re: Overwriting Today and Seconds

From "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Overwriting Today and Seconds
Date 2013-04-30 12:07 +0200
Organization A noiseless patient Spider
Message-ID <klo4vf$pks$1@dont-email.me> (permalink)
References <klnsqb$i66$1@dont-email.me> <au9hppFhfmvU1@mid.individual.net>

Show all headers | View raw


Hi Wolfgang, Malcom, Karl-Heinz,

yes, it was what I was searching for for changing functionality in my own 
code. I did not think on the possibility of renaming the function via the 
_dll statement.

Thanks a lot. You all have had a good performance returning an unpaid answer 
in less than 2 hours :-)

Arne


"Karl-Heinz" <invalid@invalid.invalid> schrieb im Newsbeitrag 
news:au9hppFhfmvU1@mid.individual.net...
> 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 | 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