Email lists > Delphi programming > Re: [delphi-en] Delphi + Rave Report (Date) > Re: [delphi-en] Delphi + Rave Report (Date)

Re: [delphi-en] Delphi + Rave Report (Date)




This post if a part of  this thread

2008-05-16 12:33:38
Re: Delphi + Rave Report (Date)

Rob's solution is good, although you could also accomplish it with the
OnGetText event for your dvDate field (select the field in the field editor and
look on the Object Inspector event page). I.E.

procedure TForm1.DvDateGetText(Sender: TField; var Text: String; DisplayText:Boolean);
begin
text := DateTimeToStr(Sender.asDateTime - 1);
end;

Dave

soonhuat ong < soonhuat81%40yahoo.com">soonhuat81yahoo.com> wrote: Hi David Smith, would you mind to elaborate in details ??

David Smith < djsmith_1998%40yahoo.com">djsmith_1998yahoo.com> wrote: I was able to do that once by writing to it's text property which it should have by being a descendant of TComponent.

Dave

soonhuat ong < soonhuat81%40yahoo.com">soonhuat81yahoo.com> wrote: Hi all,

I create a dataview on my Rave Report with following fields:
dvName = String Type
dvDate = Date Type

Now i drop 2 DBText components on my Rave Page, DBText1 will bind to dvName, and DBText2 will bind to dvDate ..

The question now is, i want DBText2 to display a day before actual dvDate value, how can i do it ??

Thanks in advance everyone

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]

[Non-text portions of this message have been removed]





[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___

about | contact  Other archives ( Real Estate discussion Medical topics )