[Lazarus] Does sdfdataset support locate and lookup?

2015-04-02 Thread John Landmesser

Tipps are welcome:

This code snippet doesn't work:


var val : Variant;
begin
  val := Editinput.Text;
  val := SdfDataSetNew1.Lookup('Spalte1',VarArrayOf([val]),'Spalte3');

  if not VarIsNull(val) then
   Editoutput.Text:=val[0]
  else
   Editoutput.Text:= 'VarIsNull'; 



perhaps i ask here and go then to the source?

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Does sdfdataset support locate and lookup?

2015-04-02 Thread Michael Van Canneyt



On Thu, 2 Apr 2015, John Landmesser wrote:


Tipps are welcome:

This code snippet doesn't work:


var val : Variant;
begin
  val := Editinput.Text;
  val := SdfDataSetNew1.Lookup('Spalte1',VarArrayOf([val]),'Spalte3');

  if not VarIsNull(val) then
   Editoutput.Text:=val[0]
  else
   Editoutput.Text:= 'VarIsNull'; 



perhaps i ask here and go then to the source?


This does not work.

I am reworking the CSV dataset, after that it should work.

Michael.

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus