[Lazarus] Partially disabling DBNav based on a record set value

JoshyFun joshyfun at gmail.com
Sun Dec 6 20:45:40 CET 2009


Hello Lazarus-List,

Sunday, December 6, 2009, 8:02:47 PM, you wrote:

CJ> I somehow need to be able to wrap this into an IF statement something like
CJ> If filed x = y then
[...]
CJ> I am not able to figure out the if statment. I did know how to work with
CJ> the DBNav buttons display.

Something like:

If Dataset.FieldByName('CheckField').AsString='F' then begin
  [.....]Show delete
end else begin
  [.....]Hide delete
end;

In AfterScroll field "fields" points to the current record.

-- 
Best regards,
 JoshyFun





More information about the Lazarus mailing list