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

JoshyFun joshyfun at gmail.com
Sun Dec 6 19:50:33 CET 2009


Hello Lazarus-List,

Sunday, December 6, 2009, 7:29:27 PM, you wrote:

CJ> I have the following column as part of a mySQL table.
CJ> `courses_subject_lock` CHAR(1) NOT NULL DEFAULT 'F'
CJ> I would like to modify the state of a DBNav component such that some
CJ> aspects of it are disabled based on a record set value.
CJ> Specifically, I would like to disable only the DELETE function if the
CJ> value for this field in a given recotd is set to T

In the AfterScroll event of your query enable/disable the navigation
buttons manually.

-- 
Best regards,
 JoshyFun





More information about the Lazarus mailing list