Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
FUNCTION reverseString RETURNS CHARACTER (
|
||||
INPUT i_c AS CHARACTER
|
||||
):
|
||||
|
||||
DEFINE VARIABLE cresult AS CHARACTER NO-UNDO.
|
||||
DEFINE VARIABLE ii AS INTEGER NO-UNDO.
|
||||
|
||||
DO ii = LENGTH( i_c ) TO 1 BY -1:
|
||||
cresult = cresult + SUBSTRING( i_c, ii, 1 ).
|
||||
END.
|
||||
RETURN cresult.
|
||||
|
||||
END FUNCTION.
|
||||
|
||||
MESSAGE reverseString( "asdf" ) VIEW-AS ALERT-BOX.
|
||||
Loading…
Add table
Add a link
Reference in a new issue