🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1254

Table->Locate in > 1 fields

#1254
From: Ingo Sigl
Date: Thu, 30 Dec 1999 00:00
33 lines
1212 bytes
I use the Table->locate method for the search in more than one fields.
The search in one field is ok with

String test;

Table->Locate("Company", test, Opts);


But the search in more than one fields is not functionating. I always
get the
result "false" also if the datarecord exists. The code ist the same like
in the help
example:


TLocateOptions Opts;
Opts.Clear();
Opts << loPartialKey;
Variant locvalues[2];

String test, test1;

locvalues[0] = Variant(test0);
locvalues[1] = Variant(test1);
CustTable->Locate("Company;Contact", VarArrayOf(locvalues, 1), Opts);


What is wrong with the function in C++??? In Delphi itworks quite well.

Many thanx for any help!!!

ingo.sigl@online.de
Technical Details
Message-ID: <386B726A.60020506@online.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,d388a424ed6a27cf,start
X-Google-Attributes: gidfcd2b,public
From: Ingo Sigl <ingo.sigl@online.de>
Subject: Table->Locate in > 1 fields
Date: 1999/12/30
Message-ID: <386B726A.60020506@online.de>
X-Deja-AN: 566514627
Content-Transfer-Encoding: 7bit
Organization: GlueDo
X-Accept-Language: de
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.cppbuilder.database.multi-tier