New DC_BrowseQuery() class

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

New DC_BrowseQuery() class

#1 Post by rdonnay »

Created a new class: DC_BrowseQuery(). This is only a sample class and not documented. Usage is included in the sample program ..\Samples\BrowseQuery\BrowseQuery.Prg. This class is used to provide a popup window of a user-friendly dialog for creating filters for the browse.

Create a new directory named \exp19\samples\BrowseQuery and unzip the attached file to that directory.

Run PBUILD BrowseQuery to build BrowseQuery.Exe.

Run the program and click on the FIND button.
Enter value(s) into the Gets and then click FIND to see how the filter is created for the browse.

I wrote this class for Bobby Drakos for use in a law office application.
He says that this is the most used feature in his entire application.
Attachments
BrowseQuery.zip
DC_BrowseQuery() source code.
(4.26 KiB) Downloaded 653 times
The eXpress train is coming - and it has more cars.

User avatar
TWolfe
Posts: 60
Joined: Thu Jan 28, 2010 7:34 am

Re: New DC_BrowseQuery() class

#2 Post by TWolfe »

Hi Roger,

The sample does not compile w/o adding #INCLUDE "DCHTML.CH"

After the compile I get an "Invalid numeric value"
Operation <1>%<0>
called from (B)INIT: _DCINIT(28)
called from DC_BROWSEQUERY:APPLYQUERY(385)

BTW: Do they have law offices in taxis in the Big Apple now??

Terry

User avatar
rdonnay
Site Admin
Posts: 4734
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: New DC_BrowseQuery() class

#3 Post by rdonnay »

Oops. This was tested with build 255. You apparently are using build 254. You don't need dchtml.ch.

DCEVAL is a new command in build 255.

Just comment out lines 271 and 272 because that isn't needed for this sample because it uses a floating window.

Code: Select all

// DCEVAL {||::browseObject := oBrowse, ;
//           ::parentObject := oStaticQuery}
Bobby has quite a few projects going on now. He's also maintaining Bob Volz's app.
The eXpress train is coming - and it has more cars.

Post Reply