[Thread Prev][Thread Next][Index]

[ferret_users] Is there any string function to divide string into pieces by character



Hi ! all
I am searching whether any string function available in ferret, to divide string into pieces by character 

for example

yes? let test = {"0123456789 "} ! Being test variable
yes? list test
             VARIABLE : {"0123456789 "}
             X        : 1
        "0123456789 "
yes? list strlen(test) ! list the length of string
             VARIABLE : STRLEN(TEST)
             X        : 1
          11.00

I want to split string by character so that if I list them, I should get single character in each index
list /i=1:11 dummy
1   / 1:"0"  
2 / 2:"1"
3 / 3:"2"
4 / 4:"4"
5 / 5:"5"
6 / 6:"6"
7 / 7:"7"
8 / 8:"8"
9 / 9:"9"
10 /10:"10"
11 /11:" "  

please let me know if any....


Regards,
Akshay Hegde



[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement