PDA

View Full Version : Colum questions



Wes Lyon
1-Feb-2009, 09:56 AM
hi all...
I have a dbgrid with the following and it works fine:
Entry_Item (Doyle.Board_Feet * 1.60)

What i want to do is round the above expression such as :

Entry_Item Round((Doyle.Board_Feet * 1.60)) but the
compiler wants a constant. Is there a way to do this besides using a
function ?

The above comes up as a shadowed field. I would like to color it the
same as the rest of the colums. And I would like to change the
justification. What properties am I missing?

Thx

Wes

Marco
1-Feb-2009, 08:46 PM
Hi Wes,

This post, should have been posted in the Visual-DataFlex group but
never ming.

The constant the compiler is looking for is the number of decimals you
would like to round it too. I assume you only want the whole number so
your code would look like;

Entry_Item (Round((Doyle.Board_Feet * 1.60),0))

Cheers,
Marco

Wes Lyon wrote:
> hi all...
> I have a dbgrid with the following and it works fine:
> Entry_Item (Doyle.Board_Feet * 1.60)
>
> What i want to do is round the above expression such as :
>
> Entry_Item Round((Doyle.Board_Feet * 1.60)) but the compiler
> wants a constant. Is there a way to do this besides using a function ?
>
> The above comes up as a shadowed field. I would like to color it the
> same as the rest of the colums. And I would like to change the
> justification. What properties am I missing?
>
> Thx
>
> Wes
>
>