Faster use of sets using Include and Exclude

A common way of adding and removing items from a set is to simply use + and – like this:

SetItem:=SetItem+[fsValue1];

However there is a much faster way of doing this that uses much more efficient code. Using Include and Exclude procedures, the same statement above would be written as:

Include(SetItem, fsValue1);

This does not work for properties of objects. Whilst some checking of this is carried out, hints may still be made which are invalid. Always make a backup before applying this suggestion as it may cause compiler errors.  




< Back to list of hints and warnings