i want to find the number in a string and then store it into int,
i tried sub string, but the compiler tells me that i cannot convert string to integer.
what can i do??

Recommended Answers

All 2 Replies

Search the string for the digits, pull the substring out, then convert.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.