Hello,
Are there equivalent command or built-in functions to intrinsic RDMLX string functions Replace and ReplaceAll in RDML?
best,
Sotiris
Replace, ReplaceAll equivalent in RDML
Re: Replace, ReplaceAll equivalent in RDML
Hi,
No, there is not.
https://docs.lansa.com/15/en/lansa015/i ... 1_0056.htm
but you can call from an RDML function to an RDMLX function and get the result.. like:
and FUNX01 which needs to be an RDMLX can do something like:
No, there is not.
https://docs.lansa.com/15/en/lansa015/i ... 1_0056.htm
but you can call from an RDML function to an RDMLX function and get the result.. like:
Code: Select all
FUNCTION OPTIONS(*DIRECT)
CHANGE #STD_TEXTL 'ABRACADABRA'
EXCHANGE #STD_TEXTL
CALL PROCESS(*DIRECT) FUNCTION(FUNX01)
DISPLAY #STD_TEXTL
Code: Select all
FUNCTION OPTIONS(*DIRECT)
#STD_TEXTL := #STD_TEXTL.ReplaceAll( 'A', 'X' )
EXCHANGE #STD_TEXTL
RETURN