TilakGopi
sure,
split the my string considering the space as delimeter.
Now u'll get an array of strings consisting
strTokens {Dimensions:[0x00000018]} string[]
[0x00000000] "my" string
[0x00000001] "name" string
[0x00000002] "is" string
[0x00000003] "pessi" string
[0x00000004] "" string
[0x00000005] "" string
[0x00000006] "" string
[0x00000007] "" string
[0x00000008] "and" string
[0x00000009] "I" string
[0x0000000a] "am" string
[0x0000000b] "" string
[0x0000000c] "" string
[0x0000000d] "" string
[0x0000000e] "" string
[0x0000000f] "" string
[0x00000010] "" string
[0x00000011] "" string
[0x00000012] "from" string
[0x00000013] "" string
[0x00000014] "" string
[0x00000015] "" string
[0x00000016] "" string
[0x00000017] "India" string
Now what i'm doing is counting the strings which are not blnaks by checking each elment in the strTokens[] array
(Trim the string ,if it's length is zero - it's blank - that's the logic here).
Now, i will have the actual count.
Similarly i'm copying the elements ,which are not blank to the target array.
Now target array contains only the non blnak elements.
Debug my code , so that u'll get know what's happening.
Hope u r clear now.Not No probls, post ur queries again.
Thanx,
Ch.T.Gopi Kumar.