Ability To Define An Abl Class Property With Like

  • Thread starter Thread starter Paul Clare
  • Start date Start date
Status
Not open for further replies.
P

Paul Clare

Guest
It would be useful to define an ABL class property LIKE a database field. For example: USING Progress.Lang.*. BLOCK-LEVEL ON ERROR UNDO , THROW . CLASS test: DEFINE PUBLIC PROPERTY testprop LIKE OrderLine.Price NO-UNDO GET . SET . END CLASS . It's not possible to define properties in classes using the "like" phrase. This is in most cases not necessary, but in the case of a decimal property it would be useful with the number of decimal places. Some database fields (e.g. currencies) are defined with a well defined number of decimals (e.g. 2 for USD, EUR, etc.). If the code does not reflect this precision, then there can be rounding problems. For example in some installations, the customer has changed the number of decimals (e.g. 3). If we could always use the like phrase, then it would not be necessary to change the application code. Not having this option, we have to change code in that installation and much more important: we have to find all the places, where we need to change.

Continue reading...
 
Status
Not open for further replies.
Back
Top