M
max
Hi all,
if in a procedure that is executed very often, like the OnCurrent event
(moving back and forth accross the recordset), I have to set a property for
a control, like me.cmdDelete.visible = false, just to make sure that the
button is not visible moving to another record, the result will be that most
of the times I will be setting to false a property that it is already false.
My question is the following:
in the above mentioned scenario, is it better to use:
1) me.cmdDelete.visible = false
and doing so setting a property to the same value it has already
or
2) if me.cmdDelete.visible = true then me.cmdDelete.visible = false
avoiding so a useless assignment but asking the application to verify a
condition.
The reason why I am asking is that I have to do this kind of assigments for
a lot of controls in the OnCurrent event, and I don't wont to deteriorate
the performance...
I hope the questiuon is clear ..
Thank you for your help.
Max
if in a procedure that is executed very often, like the OnCurrent event
(moving back and forth accross the recordset), I have to set a property for
a control, like me.cmdDelete.visible = false, just to make sure that the
button is not visible moving to another record, the result will be that most
of the times I will be setting to false a property that it is already false.
My question is the following:
in the above mentioned scenario, is it better to use:
1) me.cmdDelete.visible = false
and doing so setting a property to the same value it has already
or
2) if me.cmdDelete.visible = true then me.cmdDelete.visible = false
avoiding so a useless assignment but asking the application to verify a
condition.
The reason why I am asking is that I have to do this kind of assigments for
a lot of controls in the OnCurrent event, and I don't wont to deteriorate
the performance...
I hope the questiuon is clear ..
Thank you for your help.
Max