Recent

Author Topic: [SOLVED] TBufDataSet.Locate  (Read 416 times)

egsuh

  • Hero Member
  • *****
  • Posts: 1289
[SOLVED] TBufDataSet.Locate
« on: January 13, 2023, 11:07:52 am »
Why sometimes this does not work with multiple key fields?

Eg.

  BufDataSet1.Locate('pid;wave', [tpid, twave], []);

raises exception of columnh 'pid;wave' does not exist.
« Last Edit: January 13, 2023, 12:15:20 pm by egsuh »

egsuh

  • Hero Member
  • *****
  • Posts: 1289
Re: TBufDataSet.Locate
« Reply #1 on: January 13, 2023, 12:15:04 pm »
I should have written :

    BufDataSet1.Locate('pid;wave', VarArrayOf([tpid, twave]), []);

I don't know how many times I made this stupid mistake.

 

TinyPortal © 2005-2018