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.
Alistair Thrussell14 pointsPosted Aug 22, 2007, 5:04 AM EDT
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);