Solved

SetGenFilter() in Paradox7 using Dates

Posted on 1998-02-27
5
304 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: I have seen many questions on EE and elsewhere, asking about how to find either gaps in lists of numbers (id field, usually) ranges of values or dates overlapping date ranges combined date ranges I thought it would be a good …
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…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now