Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SetGenFilter() in Paradox7 using Dates

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

718 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