Solved

SetGenFilter() in Paradox7 using Dates

Posted on 1998-02-27
5
359 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
[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
  • 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
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…

734 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