Posted: Sun Nov 05, 2017 9:32 am Post subject: Code to freeze record value
Code:
function ConstLight(sender)
AL = getAddressList()
???
end
trainer.t = createTimer(nil, false)
trainer.t.onTimer = ConstLight
trainer.t.Interval = 1000;
--
trainer.l_cb = createCheckBox(trainer.form);
trainer.l_cb.Caption = 'Light';
trainer.l_cb.Height = 20;
trainer.l_cb.Left = 260;
trainer.l_cb.Width = 75;
trainer.l_cb.Top = 97;
trainer.l_cb.onClick = function (sender)
if sender.Checked then
trainer.t.Enabled = true;
else
trainer.t.Enabled = false;
end
end
I have a record that has a value of "Light" and I would like to be able to code freezing its value. I know one can check the record to freeze it but I would like to do the freezing with a check box and code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum