Autor Beitrag
Skywalker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 04.09.02 09:26 
Hi,

hab fast das gleiche Problem wie Sunday_2. Ich möchte den Inhalt einer Tabelle mit einer bestimmten Spalte mit dem Inhalt eines DB-Feldes vergleichen.

ausblenden Quelltext
1:
2:
3:
4:
5:
if Table2.locate('Spaltenname', VarArrayOf ([DB-Feldname])) = true then
begin
*
*
*


Irgendwo hier muß ich noch einen Fehler haben und trotz intensiver Suche, komme ich leider auf keine Lösung.
Wäre für eure Hilfe sehr dankbar.

CU
Skywalker
MrSpock
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 262



BeitragVerfasst: Mi 04.09.02 09:54 
Hallo Skywalker,

es fehlt noch der dritte Parameter.

Zitat aus der OH:

Zitat:

TLocateOption = (loCaseInsensitive, loPartialKey);
TLocateOptions = set of TLocateOption;

function Locate(const KeyFields: string; const KeyValues: Variant; Options: TLocateOptions): Boolean;

_________________
Live long and prosper
MrSpock \\//
Skywalker Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mi 04.09.02 10:13 
Danke für die schnelle Hilfe.
Hat alles wunderbar geklappt.
Steffer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 299



BeitragVerfasst: Do 05.09.02 18:07 
Bei einme Feld spar dir das VarArrayOf ... sondern arbeite nur mit dem entsprechende Wert

_________________
Keine Signatur ...