🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1293

Re: ROWSET - LOCATE MODE problem

#1293
From: Raul Pereira
Date: Thu, 19 Feb 1998 00:00
30 lines
1357 bytes

Bowen Moursund wrote in message <6cadqn$o452@forums.borland.com>...
>>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
>

Tks for Help
Raul
Technical Details
Message-ID: <6chi23$n8b$1@duke.telepac.pt>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6ca0pu$j30$1@duke.telepac.pt> <6cadqn$o452@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,f944bac183f2835e
X-Google-Attributes: gidff5a1,public
From: "Raul Pereira" <bfe00167@mail.telepac.pt>
Subject: Re: ROWSET -  LOCATE MODE  problem
Date: 1998/02/19
Message-ID: <6chi23$n8b$1@duke.telepac.pt>
X-Deja-AN: 326616661
References: <6ca0pu$j30$1@duke.telepac.pt> <6cadqn$o452@forums.borland.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Newsgroups: borland.public.vdbase.data.sql