Coding Style

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

I've realized that I have such a construction like this:

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

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

Is there another more elegant proposition?

TIA

All Replies

Posted by Stefan Drissen on 12-Feb-2018 17:01

Something like this?

DO WITH FRAME {&FRAME-NAME}:
  {&SELF-NAME} = CAPS( TRIM( {&SELF-NAME} )  ).
  DISPLAY {&SELF-NAME}.
END.

Posted by Patrick Tingen on 13-Feb-2018 01:08

Or use the real names instead of the preprocessors. What exactly is your problem with it?

Posted by OctavioOlguin on 14-Feb-2018 17:10

It's too curly.....   :(

Posted by OctavioOlguin on 14-Feb-2018 17:11

And when copy/paste.. it is finished from start

This thread is closed