Hi everyone on .NET Talk!
I am a new programmer to VC++ .NET - Im migrating from VB 6.0, which I used for around 3 years. Im 17 years old, from the UK, and Ive been interested in programming since the age of 11 - when I started playing around in QBasic . In the future, Im aiming for a job in software development, and it seems that for me C++ .NET is the way to that goal. Im currently midway through an ICT course at college - but hopefully Ill 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. Ive searched the forums, and found a little more information that I had to start with, but Im still lacking a bit.
There are a few functions Im 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 its out there somewhere )
Thankyou for any help or links
I am a new programmer to VC++ .NET - Im migrating from VB 6.0, which I used for around 3 years. Im 17 years old, from the UK, and Ive been interested in programming since the age of 11 - when I started playing around in QBasic . In the future, Im aiming for a job in software development, and it seems that for me C++ .NET is the way to that goal. Im currently midway through an ICT course at college - but hopefully Ill 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. Ive searched the forums, and found a little more information that I had to start with, but Im still lacking a bit.
There are a few functions Im 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()
Code:
Dim userName as String
userName = "r-S"
msgbox(len(userName))
Code:
System::String *sText = Form1::Text1->Text;
--------
split()
Code:
Dim userInfo() as String
userInfo = Split(sData, ";")
Sorry for such a long question - I could find nowhere with this information (though I expect its out there somewhere )
Thankyou for any help or links