Article View: borland.public.vdbase.data.sql
Article #1171Re: VDB7 - DMD Question
From: Bowen Moursund
Date: Fri, 24 Apr 1998 00:00
Date: Fri, 24 Apr 1998 00:00
51 lines
1863 bytes
1863 bytes
>Not that I'm complaining or anything, but......
Try it like this:
class CLAIMSDataModule of DATAMODULE
this.CLAIMS1 = new QUERY()
this.CLAIMS1.parent = this
with (this.CLAIMS1)
sql = 'select * from "claims.dbf"'
active = true
endwith
with (this.CLAIMS1.rowset)
canGetRow = class::CLAIMS_CANGETROW
endwith
this.PROCS1 = new QUERY()
this.PROCS1.parent = this
with (this.PROCS1)
sql = 'select * from "PROCS.DBF"'
active = true
endwith
with (this.PROCS1.rowset)
canGetRow = class::PROCS_CANGETROW
indexName = "CLAIMNO"
masterRowset = parent.parent.claims1.rowset
masterFields = "CLAIMNO"
endwith
this.rowset = this.claims1.rowset
function Claims_canGetRow
return not this.fields["CLOSED"].value
function Procs_canGetRow
return this.fields["TOS"].value = 'X'
endclass
__
Bowen Moursund (TeamB)
bowenNOSPAM@nerds.com
http://lonestar.texas.net/~moursund/
Try these help resources:
http://forumsearch.borland.com:88
http://www.dejanews.com/home_ps.shtml
Technical Details
Message-ID:
<6hqfn8$lk5@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<353D1963.4C0D@Bellsouth.net> <6hivn8$mc49@forums.borland.com> <353D5D1A.3682@Bellsouth.net> <6hl6j9$okg7@forums.borland.com> <353E7483.513D@Bellsouth.net> <6hnq54$r4g9@forums.borland.com> <353FDCA1.6480@Bellsouth.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,438323d64b0ab196 X-Google-Attributes: gidff5a1,public From: "Bowen Moursund" <teamb@opto-pps.com> Subject: Re: VDB7 - DMD Question Date: 1998/04/24 Message-ID: <6hqfn8$lk5@forums.borland.com> X-Deja-AN: 347349559 Content-Transfer-Encoding: 7bit References: <353D1963.4C0D@Bellsouth.net> <6hivn8$mc49@forums.borland.com> <353D5D1A.3682@Bellsouth.net> <6hl6j9$okg7@forums.borland.com> <353E7483.513D@Bellsouth.net> <6hnq54$r4g9@forums.borland.com> <353FDCA1.6480@Bellsouth.net> Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: DataTech Mime-Version: 1.0 Newsgroups: borland.public.vdbase.data.sql