Hi,
Recently i tried to use the DELCHR function. The C/Side reference guide says following:
- I am currently working in version 4 SP2
Text constants:
Text000: 'Windy Solutions'
Text001: '>%1<, is transformed to: >%2<'
C/AL:
String := Text000;
Where := '<>';
Which := 'Ws';
NewString := DELCHR(String, Where, Which);
MESSAGE(Text001, String,NewString);
It says result will be:
>Windy Solutions<, is transformed to: >indy Solution<
Why is this. I would think it should be: >Windy Solutions<, is transformed to: >Ws<. I also tried the same with: Where := '=';
This gives the same result as with Where := '<>'...
Is this a bug or am i doing something wrong?
Bohr-ing.
0
Comments
The On-Line help also states that
That is
< removes only the leading character
> removes only the trailing character
Try using 'Windys WSolutions' => 'indys WSolution'
Thoms Hviid Thorn
Ok, if it works like this, then i get it. I thought '<>' stood for 'different from'.
Tx.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
P.S.: How do i close this subject? Or is this done automatically?
http://www.BiloBeauty.com
http://www.autismspeaks.org
It was very helpfull for me!