verasin
6th May 2004, 04:25
Dear All
i want to select character from the string
Exsample "125d36css"
the resault is "d36css"
pls... advice me for the function to select the character.
Thank in advance
-***Witcharat***_
Refer to the programmers manual links for handling strings and substrings -
pos(), rpos() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_pos_rpos)
Arrays (http://www.baanboard.com/programmers_manual_baanerp_help_3gl_features_arrays)
verasin
6th May 2004, 06:26
Dear N. Prashanth Rao
Your solution is work
Thank you for your help
***:) :) :( :( ***
SriksAdi
6th May 2004, 13:19
Hi,
In Baan, strings of more than 1 character length are stored as an array of characters. Like, the string, str = "Hello" is basically a character array of length 5.
In order to get the first three characters, you can use str(1;3). i.e. str2 = str(1;3) will contain "Hel".
Similarly in the example above str = "125d36css", to extract
str2 = "d36css", use str2 = str(4;6)
Starting from 4th character, extract 6 characters.
Regards
Sriks