.NET Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgramming.NET Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #16  
Old May 9th, 2008, 03:09 PM
Wolffy's Avatar
Wolffy Wolffy is offline
Slaprentice of Wolves
Click here for more information.
 
Join Date: Aug 2007
Location: Mossville, IL
Posts: 1,343 Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Wolffy User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 2 Weeks 22 h 41 m 59 sec
Reputation Power: 447
Quote:
Originally Posted by canarchy
so then what is creating the error?
Invoking New on an instance of a data type and not the data type itself. You have
Dim objCollection = New objFolder.SubFolders, but SubFolders is a Property that is an instance of some data type -- thus, being already instantiated, the New doesn't make sense here. The correct statement would be something like:
Code:
Dim objCollection as Object = objFolder.SubFolders
where Object is whatever data type is being returned by the SubFolders property.

I cant' tell from your code -- objFolder is an instance of what class?
Comments on this post
Shadow Wizard agrees!
__________________
Wolffy
------------------------
Opinions expressed are my own and do not necessity reflect those of any sane person. Any code provided is intended to be an example and is provided AS IS. Rework for your specific environment may be required. Void where prohibited by law. Not valid in California. Your mileage may vary. Not FDIC insured

Last edited by Wolffy : May 9th, 2008 at 03:12 PM.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgramming.NET Development > ASP.Net/General - ASP to ASP.NET error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway