i m beginner to vb.net.. i want explanation for Indexof,Cint method in vb.net..
can u tell me with simple sample application.....
i m beginner to vb.net.. i want explanation for Indexof,Cint method in vb.net..
can u tell me with simple sample application.....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Alistair ThrussellPosted Aug 22, 2007, 9:04 AM
String myString = "abc";
int i = myString.IndexOf("a");
in this case i is 1. the function will return -1 if the string is not found. You can also use IndexOf on Collections.
Cint is used to convert to an Integer Data Type.
String num = "1";
int intNum = Cint(num);