OCLOperators maxLength
This page was created by Lars.olofsson on 2020-06-29. Last edited by 62.169.16.147 on 2026-09-12.
Returns the maximum length allowed for a string attribute.
Useful for cutting a string to fit an attribute and avoiding SQL errors when saving.
Example[edit source]
Given a Class Car with string attribute Name
Car.allInstances->first.Name.maxLength
This will return the maximum length for the string attribute Name
