Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SetGenFilter() in Paradox7 using Dates

Posted on 1998-02-27
5
Medium Priority
?
385 Views
Last Modified: 2008-02-20
I wish to ask the user to input a date via a Dialog box and then produce a report of Date Leave field after this date. However the table is not indexed on date leave Field and the report ideally doesnt want to be indexed on date leave. An obvious answer would be to use a dynarray and setGetFilter. The syntax of
dynFilter["date Leave"] = "> [Date var from DialogBox]"
report.SetGenFilter(Dynarray)
does not work as setgenfilter works with strings! Does anybody know a workaround to solve this?
The Report is not delivered yet! I wish to achieve the same effect as going into design mode for report and entering a value in the filter dialog box for date leave field of say
"> 1.1.98"
Cheers Andy!
Andy_J_Paton@Compuserve.com
0
Comment
Question by:AndyPaton
  • 3
  • 2
5 Comments
 

Author Comment

by:AndyPaton
ID: 1025992
Edited text of question
0
 
LVL 3

Expert Comment

by:d4jaj1
ID: 1025993
Is your report delivered?
0
 

Author Comment

by:AndyPaton
ID: 1025994
Edited text of question
0
 
LVL 3

Expert Comment

by:d4jaj1
ID: 1025995
There's a trick I used to do a while ago with Paradox.  Try opening the form hidden, then in design mode, set the filter, then run it.  This allows you to set properties as if your where working in design mode.  The sequence would be something like this,

if RepName.load("ReportName.rsl") then
   repname.design()
   repname.object.property = whatever
   repname.run
endif

This should be enough to get you on your way.  If not, let me know & I'll see if I can find my old code that did this. (I don't code in Paradox anymore, Delphi's just as easy and much faster)
0
 
LVL 3

Accepted Solution

by:
d4jaj1 earned 200 total points
ID: 1025996
I meant the previous comment to be an answer.  Did it work for you?
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
How much do you know about the future of data centers? If you're like 50% of organizations, then it's probably not enough. Read on to get up to speed on this emerging field.
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

876 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