The OBJECT Get corner radius command returns the current value of the corner radius for the rounded rectangle object whose name is passed in the object parameter. This value may have been set at the form level using the Property list (see Corner radius (rectangles)), or for the current process using the OBJECT SET CORNER RADIUS command.
Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string (field or variable object only).
Note: In the current version of 4D, this command only applies to rounded rectangles (which are static objects). As a result, only the syntax based on the object name (using the * parameter) is supported.
This command returns the radius of rounded corners in pixels. By default, this value is 5 pixels.
The following code could be added to a button method: