Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-04

Does sdfdataset support locate and lookup?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Landmesser

Tipps are welcome:

This code snippet doesn't work:

Show quoted text 9 lines
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?

Reply by email

Michael Van Canneyt
to John Landmesser
John Landmesser wrote 16 lines
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.

Reply by email