gbernal
19th February 2003, 21:24
Hello Everybody:
I need to know how can extract someone character from a text string. Actualy I know the character position.
This like to SUBSTR function in other Languages
Regards.
evesely
19th February 2003, 21:39
Let's say you want character 6 of a string, mystr. Do:
mystr(6;1)
This means start at position 6 and take 1 character.
Brunphil
24th October 2006, 16:48
Let's say you want character 6 of a string, mystr. Do:
mystr(6;1)
This means start at position 6 and take 1 character.
Hi,
I'm a frenchy baan developer.
you propose "mystr()" but in the help of baan i don't find this function.
strange !
in other language i know "substring"
thank's
Hiba_t
24th October 2006, 17:07
Hi,
You're right mystr is not a function..
I think evesely meant that if your string variable name was mystr then you can use the syntax he offered..
Hiba
en@frrom
24th October 2006, 17:23
Yes indeed,
For instance, you have the following situation:
domain tcmcs.str10 source, target
source = "ABCDEFGHIJ"
target = source(3;2)
This means that target will be assigned 2 positions from source starting with position 3.
target = source(4)
Here target will get everything in source from position 4, i.e. target will contain "DEFGHIJ"
Etc etc
Hope this is clear. If you have more questions try the WIKI pages, or else if you're stuck don't hesitate to ask here..
Good luck!
Eli Nager
Brunphil
24th October 2006, 17:30
Yes indeed,
For instance, you have the following situation:
domain tcmcs.str10 source, target
source = "ABCDEFGHIJ"
target = source(3;2)
This means that target will be assigned 2 positions from source starting with position 3.
target = source(4)
Here target will get everything in source from position 4, i.e. target will contain "DEFGHIJ"
Etc etc
Hope this is clear. If you have more questions try the WIKI pages, or else if you're stuck don't hesitate to ask here..
Good luck!
Eli Nager
Thank's a lot !!!!