I am working in classic ASP and have a string as below :
A
B
C
Now I want to split the string, I have tried vbCrLf, vbNewline , vblf and
but none of them work.
Please suggest me an alternative to split the string. I am in a bad fix.
I am working in classic ASP and have a string as below :
A
B
C
Now I want to split the string, I have tried vbCrLf, vbNewline , vblf and
but none of them work.
Please suggest me an alternative to split the string. I am in a bad fix.
This happens more often than you think, you need to remove the vbcr first then replace only vblf and forget about spliting on vbcrlf because it wont work for 100% of the user envrioments out there.
Are you sure, you have newlines in the string?
First you can output all character codes to find out, by which character to split:
Then you have 2 options:
If you can split by one character (e.g. char num 10), you can use:
You can grab values out of your string by using regular expression matching. This is much overhead, but if all else fails, here is how you could do that:
This assumes, that there is no whitespace in the strings you are looking for.