🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12692

Re: Searching Databases

#12692
From: Greg Stantin
Date: Fri, 21 Nov 2003 02:46
14 lines
1393 bytes
> scrolling is not a very good option. I know that there must be a way
to set
> up a search function.
>
> to have an Edit box on the main form that the user can use to input
the
> search string and perhaps a button to perform the action.

Try this.

if(Table1->Locate("LastName", Edit1->Text, TLocateOptions()))
{
    AnsiString LastName = Table1->FieldByName("LastName")->AsString;
}
Technical Details
Message-ID: <3fbd7c85$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3fbd4ac9@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6c7e3b8df4bf4b94
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-20 18:56:43 PST
Reply-To: "Greg Stantin" <gstantin@stantonassoc.com>
From: "Greg Stantin" <gstantin@stantonassoc.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbd4ac9@newsgroups.borland.com>
Subject: Re: Searching Databases
Date: Thu, 20 Nov 2003 20:46:39 -0600
Lines: 16
Organization: Stantin Assoc.
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 65.71.59.203
Message-ID: <3fbd7c85$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069382789 65.71.59.203 (20 Nov 2003 18:46:29 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!in.100proofnews.com!in.100proofnews.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail