Coding Style

Posted by OctavioOlguin on 12-Feb-2018 14:01

I've realized I have this structure in several place where are some attributes of the value required  (in this case, trimmed and caps)...

ASSIGN FRAME {&FRAME-NAME} {&SELF-NAME}
   {&SELF-NAME} = CAPS(TRIM({&SELF-NAME})).

DISPLAY {&SELF-NAME} WITH FRAME {&FRAME-NAME}.

Is there another way more elegant to do this?

TIA

All Replies

This thread is closed