Worf Posted January 30, 2009 Posted January 30, 2009 Hi. For some reason i am getting 'Type 'Items' not defined' in bold and i am not sure why. Anyone here can help? For Each i As Items In ListBoxControl2.Items My.Computer.FileSystem.CopyFilei.name, "C:\SFE\Temp\wallpaper\" + i.shortname) Next Many Thanks Worf Quote
Leaders snarfblam Posted January 30, 2009 Leaders Posted January 30, 2009 The syntax for a for-each statement is: For Each variable As type in Collection ' Code Next You are specifying Items as the variable type of i. Try changing Items to Object. If your listbox will contain only one type of object, you can specify a more specific type. Quote [sIGPIC]e[/sIGPIC]
Worf Posted January 31, 2009 Author Posted January 31, 2009 Thank you for your relply. Will try it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.