FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Rao or Antonio
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
To Rao or Antonio
Posted: Wed Aug 28, 2013 04:58 AM
Antonio, Rao:

Under old Clipper 5.2e this report (FRM) works:

column definition: tt * Cost

Where cost is a dbf field and tt is calculated on the fly from a block condition:
Code (fw): Select all Collapse
bRepCond := {|| InvTrans(Inv_ndc, CTOD(""), @tt, @df) .AND. ! (ROUND(tt,2) == Inv_qty)}
REPORT FORM Bcheck FOR EVAL(bRepCond)

It is given that InvTrans is a valid function that returns .T. or .F.

In FWH the following breaks with:
Error description: Error BASE/1083 Argument error: *
Args:
[ 1] = U
[ 2] = N 10.41

Code (fw): Select all Collapse
REPORT oRep .... (standard report definition)

COLUMN TITLE 'Total', 'Cost'      DATA df * ROUND(Inv_cost,2) PICTURE "999999.99" TOTAL   SIZE 12

oRep:bFor   := {|| InvTrans(Part, CTOD(""), @tt, @df) .AND. ! (ROUND(tt,2) == Inv_qty)}
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: To Rao or Antonio
Posted: Wed Aug 28, 2013 07:24 AM

df is nil and so the error

Regards



G. N. Rao.

Hyderabad, India
Posts: 723
Joined: Tue Sep 04, 2007 08:45 AM
Re: To Rao or Antonio
Posted: Wed Aug 28, 2013 02:40 PM

Rao:

Thank you for your response. I'd figured out myself that the df variable is NIL. But on the bRepCond it gets a value from the BCheck function. Under Clipper 5.2e this works with no problem at all. Is there any other way to implement this ? Thank you.

Continue the discussion