Arraylist Question

  • Thread starter Thread starter Roshawn Dawson
  • Start date Start date
R

Roshawn Dawson

Hi,

I have an arraylist that contains unknown object types. How would I go
about creating a new string with only the values in the string objects
contained within the arraylist?

Thx
 
Untested

For each obj in ArrayList1
if typeof obj is String then
debug.writeline(Directcast(obj, string))
end if
next

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top