Hi everyone on .NET Talk!
I am a new programmer to VC++ .NET - I'm migrating from VB 6.0, which I used for around 3 years. I'm 17 years old, from the UK, and I've been interested in programming since the age of 11 - when I started playing around in QBasic . In the future, I'm aiming for a job in software development, and it seems that for me C++ .NET is the way to that goal. I'm currently midway through an ICT course at college - but hopefully I'll be able to enroll for a development course at Uni two years from now
Anyway, enough of my little introduction - I have a question which I was hoping someone could answer. I've searched the forums, and found a little more information that I had to start with, but I'm still lacking a bit.
There are a few functions I'm looking for, if anyone can provide a link or the information that would be great!
(all VB code I post is VB6.0, despite the "VB.net" at the top of my tags!)
len()
Would show a messagebox containing the number 3. How can I do this in C++ .NET? I have found in this forum the function strlen(), however this works only with char variables. The way I have declared the variable in question is
Is this even the correct way to declare a string?
--------
split()
In VB6.0, this would split the string "sData" into parts around each ";". They are accesable by using userInfo(0) to get the first part, userInfo(1) to get the second part, and so on. Is there an equivelant function in C++ .NET?
Sorry for such a long question - I could find nowhere with this information (though I expect it's out there somewhere )
Thankyou for any help or links
I am a new programmer to VC++ .NET - I'm migrating from VB 6.0, which I used for around 3 years. I'm 17 years old, from the UK, and I've been interested in programming since the age of 11 - when I started playing around in QBasic . In the future, I'm aiming for a job in software development, and it seems that for me C++ .NET is the way to that goal. I'm currently midway through an ICT course at college - but hopefully I'll be able to enroll for a development course at Uni two years from now
Anyway, enough of my little introduction - I have a question which I was hoping someone could answer. I've searched the forums, and found a little more information that I had to start with, but I'm still lacking a bit.
There are a few functions I'm looking for, if anyone can provide a link or the information that would be great!
(all VB code I post is VB6.0, despite the "VB.net" at the top of my tags!)
len()
Visual Basic:
Dim userName as String
userName = "r-S"
msgbox(len(userName))
Code:
System::String *sText = Form1::Text1->Text;
--------
split()
Visual Basic:
Dim userInfo() as String
userInfo = Split(sData, ";")
Sorry for such a long question - I could find nowhere with this information (though I expect it's out there somewhere )
Thankyou for any help or links