Article View: borland.public.vdbase.data.sql
Article #1289Re: ROWSET - LOCATE MODE problem
From: Bowen Moursund
Date: Mon, 16 Feb 1998 00:00
Date: Mon, 16 Feb 1998 00:00
23 lines
1327 bytes
1327 bytes
>field NAME ( like in common Dbase Locate for "Joe" $ NAME)?
> Other way could be to pass the expression direcletly to
>rowset.applyLocate(<EXP>), but I cannot find the correct SQL expression and
>Vdb 7 doesn't allow the old Dbase Language.
The SQL technique would be to use LIKE, e.g.:
rowset.applyLocate = "NAME like '%Joe%'"
Unfortunately, the VdB data access objects do not currently support LIKE
anywhere but the WHERE clause of a SELECT statement. I think you will have
to code a loop, e.g.:
rowset.first()
do while not "Joe" $ rowset.fields["NAME"].value and ;
not rowset.endOfSet
rowset.next()
enddo
__
Bowen Moursund (TeamB)
bowen.NOSPAM@nerds.com
http://www.mindspring.com/~bowenm/datatech.htm
Technical Details
Message-ID:
<6cadqn$o452@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6ca0pu$j30$1@duke.telepac.pt>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5a1,f944bac183f2835e X-Google-Attributes: gidff5a1,public From: "Bowen Moursund" <teamb@opto-pps.com> Subject: Re: ROWSET - LOCATE MODE problem Date: 1998/02/16 Message-ID: <6cadqn$o452@forums.borland.com> X-Deja-AN: 325676695 Content-Transfer-Encoding: 7bit References: <6ca0pu$j30$1@duke.telepac.pt> 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