Ok, so I have a string called item. It's value is "Coffe`". When I try to get the number of caractors by using:However it returns with the value "5". even though there is 6 caracters. Any ideas on how to fix this?Code:textcount = item.length
Printable View
Ok, so I have a string called item. It's value is "Coffe`". When I try to get the number of caractors by using:However it returns with the value "5". even though there is 6 caracters. Any ideas on how to fix this?Code:textcount = item.length
Is that final thing a separate character, or is it an accented e? It looks like an apostrophe, which is clearly a character.
It is a separate caractor
If item is a string, then it would have a character array. I would put a breakpoint on the line you posted, and take a close look at item. Every character would count in the length, so this is not making much sense, yet.
The value is:
Coffe`
when I try to find the number of caracters using the code above, it gives me the value
5
when it should be 6.
I think the value
`
is not being counted.
Cutting and pasting that string and I get 6.