Solved

TQRExpr component (Delphi4)

Posted on 1998-09-24
4
233 Views
Last Modified: 2010-04-06
I am developing reports using TQRExpr to print a date field from a Paradox7 table. The date format that I require must be 'yyyy/mm/dd'.
0
Comment
Question by:dealer
  • 2
4 Comments
 

Expert Comment

by:huizhang
ID: 1340735
Hi dealer,

TQRExpr has very limited functions, and can only deal with simple
expression. I do not think you can present your date though that
TQRExpr.

I will add a calculated TDataTime field for my table or query, all the calculation can be done there. The field add can has a
"DisplayFormat" property which equals "yyyy/mm/dd". After that I
can use a TQRDBText to present it. Remember to set the "DateSeparator" system variable to "/"(DateSeparator:='/').
0
 
LVL 2

Expert Comment

by:Waldek
ID: 1340736
Or You can use oNNeededData event to print a date like You wish
0
 

Author Comment

by:dealer
ID: 1340737
Waldek,
I used the OnNeededDataEvent to set the display format for both a TQRExpr to print a date and a currency value and it worked fine. Thanks for the help.
0
 
LVL 2

Accepted Solution

by:
Waldek earned 50 total points
ID: 1340738
Points ?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question