[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

TQRExpr component (Delphi4)

Posted on 1998-09-24
4
Medium Priority
?
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 150 total points
ID: 1340738
Points ?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

656 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