Home » U++ Library support » U++ Core » is there a substring method?
Re: is there a substring method? [message #2920 is a reply to message #2917] |
Sun, 30 April 2006 07:09   |
 |
forlano
Messages: 1213 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
fudadmin wrote on Sat, 29 April 2006 23:32 |
forlano wrote on Sat, 29 April 2006 22:06 | Hi,
according to Wiki doc I tried this to get a substring
String a = line.Mid(10¸ 10);
but the compiler cry:
C:\Vega\Vega3\ConnectDB.cpp:48: error: stray '\184' in program
C:\Vega\Vega3\ConnectDB.cpp:48: error: expected `)' before numeric constant
What is wrong with the previous code?
Luigi
|
first of all, to many ";" in one line - should be ","...
|
If you believe or not I've copied and pasted it from my code. In it there was not the stupid "¸" but ','. So I wanted to post
String a = line.Mid(10 , 10);
After your answer I came to the code again and I saw that the ',' was not a real ',' but some sign between ',' and '.' that I do not how appeared. Very strange indeed but it is not a fairy and I do not smoke anything! So "¸" is the HTML code of this ghost sign.
Anyway, after the substitution with ',' Mid( x,y) works and this is enough. .
Luigi
|
|
|
Goto Forum:
Current Time: Sun Aug 10 11:12:43 CEST 2025
Total time taken to generate the page: 0.02966 seconds
|