Extracting the symbol rotation angle in MapInfo Pro

Products affected: MapInfo Pro.
There may be a requirement in MapInfo Pro to extract the rotation angle of each symbol and store these in  a column.
For example, for the symbol below the rotation angle is shown as 145 deg:

User-added image

The rotation angle of any symbol can be extracted as follows:
1. Create a new column, for example called Bearings, with the field type as Float
2. Go to Table > Update column and use the MapBasic command styleattr(objectinfo(obj,2),4)) as the value:

User-added image

This will populate the column the rotation angle for each symbol.
UPDATED:  November 8, 2018