Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
forlano is currently offline  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 Smile - should be ","...

Shocked
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. Very Happy .
Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Array container does only serialize base classes
Next Topic: Can we consider Regex "under development"?
Goto Forum:
  


Current Time: Sun Aug 10 11:12:43 CEST 2025

Total time taken to generate the page: 0.02966 seconds