Recent

Author Topic: TBufDataset is behaving in a very odd way from Release to Debug, and going boom!  (Read 993 times)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 967
  • Professional amateur ;-P
Hey WP,

Now that the bugreport has been sent (https://gitlab.com/freepascal.org/fpc/source/-/issues/40450) let me correct my wrong statements made during this thread:
  • TBufDataset does NOT need a filename
  • Persistent fields DO work (the reason why I don't like them is that it is a pain to rename fields once persistent fields are created).
  • Is is NOT necessary to call CreateDataset for a bufdataset with persistent fields.

This is quite awesome to read!!
I cannot thank you enough for your time on this!!

Gus, do I understand correctly that the Filter works for you. So, I do not need to look into this issue?

Yes, that is correct, I made it work in the end.

Once I realised that it needed quotations and it was using the star "*" instead of any other symbol for globbing, it works:
Code: Pascal  [Select][+][-]
  1. Dataset.Filter:= 'Alias="*<full value or partial value>*"';
  2. // Then Filter On and a refresh

So, yeah, that's sorted and was only an issue due to my ignorance of the particular syntax of the VCL/LCL Dataset's filtering.
No need to pursue that further, I guess!!

Cheers,
Gus
Lazarus 2.3.0(trunk) FPC 3.3.1(trunk) Ubuntu 23.04 64b Dark Theme
Lazarus 2.2.6(stable) FPC 3.2.2(stable) Ubuntu 23.04 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018