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


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

Re: ReportPro 3 problem

From "Jamal" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ReportPro 3 problem
Date 2014-03-27 18:56 -0400
Organization Aioe.org NNTP Server
Message-ID <lh2aa7$ta9$1@speranza.aioe.org> (permalink)
References <b1de6$53348eb7$541cf385$31712@cache1.tilbu1.nb.home.nl>

Show all headers | View raw


Jack,

For testing purposes, does setting N_vrij := 10000 work with no errors? If 
it does, then something wrong with expression.

Does this return an integer or a float value? 
N_vrij:=365.25*Brn1.Brn_Hlf*log(10000*Brn_Eig.A1waarde/Brn1.Brn_Ref)/-log(2).
If it return a float, this could be a problem!

What happens if you convert return value? For example:

N_vrij:= 
INTEGER(365.25*Brn1.Brn_Hlf*log(10000*Brn_Eig.A1waarde/Brn1.Brn_Ref)/-log(2)))

HTH,
Jamal

"Jack Konings"  wrote in message 
news:b1de6$53348eb7$541cf385$31712@cache1.tilbu1.nb.home.nl...

Hi All,

I'm having some trouble with RP3.
I defined the variable
N_vrij:=365.25*Brn1.Brn_Hlf*log(10000*Brn_Eig.A1waarde/Brn1.Brn_Ref)/-log(2).
With this variable I calculate the days until a certain event will occur.
Typical values are around 10.000 days.
I checked these values and RP3 displays them correctly. So these value seem
to be valid and usable for RP3.

In order to get the correct date of the event I defined the variable
D_vrij:=ctod(Brn1.Ref_Dat)+N_vrij.

Unfortunately RP doesn't like this expression and gives an expression error.
If the variable is defined as D_vrij:=ctod(Brn1.Ref_Dat)+10000, it works
(but the calculated date is obviously not exact).
If the variable is defined as D_vrij:=ctod(Brn1.Ref_Dat)+val(str(N_vrij)),
RP crashes (sometimes direct or after a few attempts).

Some advice on how to solve this is appreciated.
For what it's worth, I'm working on VO28SP4b, RP3.9, WIN8.1.

TIA,

Jack 

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


Thread

ReportPro 3 problem "Jack Konings" <Gordon_remove_this_.Freeman@Live_dot.nl> - 2014-03-27 21:48 +0100
  Re: ReportPro 3 problem "Jamal" <someone@example.com> - 2014-03-27 18:56 -0400
    Re: ReportPro 3 problem "Jack Konings" <Gordon_remove_this_.Freeman@Live_dot.nl> - 2014-03-28 20:21 +0100
    Re: ReportPro 3 problem "Jack Konings" <Gordon_remove_this_.Freeman@Live_dot.nl> - 2014-03-28 20:32 +0100
      Re: ReportPro 3 problem "Jamal" <someone@example.com> - 2014-03-29 13:15 -0400

csiph-web