HOW TO CONVERT THE CHARACTER STORED IN ARRAYLIST?

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
C# 
C#
 802  View(s)
Ratings:
Rate this:
how to convert the character stored in arraylist to its corresponding ascii code
  1. Chintoo Semi

    Post:135

    Points:947
    Re: how to convert the character stored in arraylist?

    you can use Asc('A') in vb.net and for c#, you can use Convert.ToInt32('A')
    Traverse through the array list & convert items. like 
    var ResponseArray = new ArrayList();

    foreach(var item in ObjArrayList)
    {
      ResponseArray.Add(Convert.ToInt32(item));
    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!