I’ve never created class / record helpers before but have read about them.
Is it possible in XE to create a helper for an enumerated type to return a string?
type TOrientation = ( oHorizontal, oVertical, oDiagonal );
So if I have a variable of TOrientation (say O), I like to be able to do:
xxx.Caption := O.ToString;
I’ve tried this in XE but get an error “Record type required”.
For now I’m just creating an array of the type with the text versions of each value.