The Set_Property_Only subroutine
Published 05 NOV 2012 at 07:30:06AM
Updated on 22 NOV 2012 at 07:30:06AM
One of the problems with the existing Set_Property function is that it also performs an implicit Get_Property operation to return the previous contents of the property to the caller. In many cases this information is simply discarded after the “Set” making the “Get” call actually unnecessary, and this inefficiency goes unnoticed as the quantity of information retrieved during the “Get” is small. However, in some cases the effect is noticeable: For example, setting the ARRAY property of an EditTable that contains several thousand rows to null (i.e. clearing it), will produce a noticeable delay while the ARRAY contents are accessed and returned.
A new subroutine, called Set_Property_Only, has been added to the OpenInsight 10. This operates in the same way as the existing Set_Property function except for the fact that it doesn't bother performing a Get_Property operation to return the previous property contents to the caller. This helps you to optimize your code for better performance.