471,325 Members | 1,414 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,325 software developers and data experts.

reading value from ArrayList

How can i access arraylist value as (int) i want access value of the index 4
of the arraylist shown below.

Any suggestions?

Permissions[0]
{Length=8}
[0]: {1}
[1]: {1}
[2]: "Awlad Hussain"
[3]: "ahussain"
[4]: {1}
[5]: {0}
[6]: {1}
[7]: {0}

Jul 21 '05 #1
1 3972
Not really sure why you are mixing datatypes in the same ArrayList, but this
might work.

int tmp = -1;
if(Permission[0] is int){
tmp = (int)Permission[0];
}
"huzz" <hu**@discussions.microsoft.com> wrote in message
news:3A**********************************@microsof t.com...
How can i access arraylist value as (int) i want access value of the index 4 of the arraylist shown below.

Any suggestions?

Permissions[0]
{Length=8}
[0]: {1}
[1]: {1}
[2]: "Awlad Hussain"
[3]: "ahussain"
[4]: {1}
[5]: {0}
[6]: {1}
[7]: {0}

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

21 posts views Thread by JoKur | last post: by
1 post views Thread by huzz | last post: by
3 posts views Thread by Stuart | last post: by
4 posts views Thread by sherifffruitfly | last post: by
13 posts views Thread by cmdolcet69 | last post: by
2 posts views Thread by Stefan Hoffmann | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.