Solved

SetGenFilter() in Paradox7 using Dates

Posted on 1998-02-27
5
329 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 100 total points
ID: 1025996
I meant the previous comment to be an answer.  Did it work for you?
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Database tuning – How to start and what to tune. This question is frequently asked by many people, both online and offline. There is no hard and fast rule-of-thumb for performance tuning, however, before beginning the tuning process one should a…
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

809 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