Article View: borland.public.vdbase.data.sql
Article #1140Re: BI VdB Team: OODML vs DML
From: Nedim Buyukmihci
Date: Sat, 18 Apr 1998 00:00
Date: Sat, 18 Apr 1998 00:00
49 lines
1780 bytes
1780 bytes
On Fri, 17 Apr 1998 23:21:45 +0200, "Ole Willy Tuv" <owtuv@online.no>
wrote:
>In present version OODML seems somewhat limited in functionality compared to
>DML. For example, the ROWSET lacks methods equivalent to SCAN and
>KEYMATCH(). Sometimes there is a workaround, usually involving more code,
>sometimes there isn't.
Ole Willy Tuv,
I'm finding, sometimes, that the need for additional code is actually
a benefit. That is, I have additional control over things that I
didn't have when a single function did more things (than maybe I
wanted it to).
In case you weren't aware, the 'work arounds' for Scan and Keymatch()
seem easy:
Scan:
for n = 1 to form.rowset.count()
<do stuff>
next
Keymatch():
Just open a second query of the same table with the appropriate
indexName:
this.query_working_table = new query()
...
this.query_lookup_table = new query()
...
with(this.query_lookup_table.rowset)
indexName = '<tag>'
endwith
Then use the second query's rowset just like you would have with
Keymatch():
if form.query_lookup_table.rowset.findKey(upper(<entryfield value>))
<alert duplicate record>
else
<save data>
endif
Ned
Technical Details
Message-ID:
<3537f847.287338494@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6h8gqa$bvb6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,64836419429a8319 X-Google-Attributes: gidff5a1,public From: ncbuyukmihci@ucdavis.edu (Nedim Buyukmihci) Subject: Re: BI VdB Team: OODML vs DML Date: 1998/04/18 Message-ID: <3537f847.287338494@forums.borland.com> X-Deja-AN: 345213447 Content-Transfer-Encoding: 7bit References: <6h8gqa$bvb6@forums.borland.com> Mime-Version: 1.0 Reply-To: ncbuyukmihci@ucdavis.edu Content-Type: text/plain; charset=us-ascii Organization: PigByte DataοΏ½ Newsgroups: borland.public.vdbase.data.sql