Page 1 of 1

DCFINDBROWSE questions

Posted: Sat Sep 08, 2018 7:58 pm
by johnlau
Two questions:

1. Does DCFINDBROWSE support data source being an array of Record Objects? How?

2. Did anyone successfully use the POINTER <nPointer> clause? It appears from DCDIALOG.CH that this clause does not translate into a pass-by-ref parameter to DC_FindBrowse, and thus this pointer never gets assigned back.

Regards,
John

PS. I am using eXPress version 264

Re: DCFINDBROWSE questions

Posted: Sun Sep 09, 2018 11:43 am
by rdonnay
John -

I'm working on a solution for you.
It will take a modification to eXpress++ source code.

Re: DCFINDBROWSE questions

Posted: Sun Sep 09, 2018 3:10 pm
by rdonnay
John -

DCFINDBROWSE has been deprecated and I will be no longer making changes to this code.

Instead, I recommend that you create your own Find / Browse using the DC_BrowseAutoSeek() function.

I added a new 13th parameter (bScan) so you can use your own scan algorithm.

I modified the BROWSE.PRG sample program so it will use DC_BrowseAutoSeek().

Copy _DCFINDX.PRG to your \exp20\source\dclipx folder.
Rebuild DCLIPX.DLL by running BUILD20.BAT or BUILD19_SL1.BAT.

COPY BROWSE.PRG to your \exp20\samples\dbrecord folder.
Rebuild BROWSE.EXE by running PBUILD PROJECT.XPJ

Run BROWSE.EXE to see how it works.

Re: DCFINDBROWSE questions

Posted: Sun Sep 09, 2018 6:55 pm
by johnlau
Roger, many thanks, John