Does anybody have any idea why my version of VS.Net doesn't accept the
following syntax?
For Each f As FileInfo In d.GetFiles()
sz += f.Length
Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles()
sz += f.Length
Next f
Even the example given in the MSDN online help on For... Next doesn't
compile without an error. I looked around for some setting but there
doesn't seem to be one and I seem to have all the updates installed. 17 1238
Tom Leylan wrote: Does anybody have any idea why my version of VS.Net doesn't accept the following syntax?
For Each f As FileInfo In d.GetFiles() sz += f.Length Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles() sz += f.Length Next f
Even the example given in the MSDN online help on For... Next doesn't compile without an error. I looked around for some setting but there doesn't seem to be one and I seem to have all the updates installed.
I believe that is new feature of .Net 1.1 and vs.net2003 only.
Hi Tom,
VB.net 2003 For Each f As FileInfo In d.GetFiles() sz += f.Length Next f
I always have to explicitly declare the variable as follows:
VB.net 2002 Dim f As FileInfo
For Each f In d.GetFiles() sz += f.Length Next f
Therefore I give all my examples in VB.net 2002 style while I am using 2003
Happy to help especialy you.
Cor
"Slonocode" <st***********@yahoo.com> wrote... I believe that is new feature of .Net 1.1 and vs.net2003 only.
That pinpointed the problem (thanks) now... I'm looking around the net but
would you have an idea how I can clean up the .Net mess I have on my machine
:-)
I appear to have Version 1.0.3705 with a reported size of 1,721MB
I appear ot have Version 1.1 with a reported size of 37MB
and strangely VS Studio is reporting it's size as 1,721MB also (seems like
something more than a coincidence)
Is there a clean way to eliminate the unneeded stuff and have a working VB
Studio with .Net 1.1 that you are aware of?
Thanks,
Tom
Tom Leylan wrote: I appear to have Version 1.0.3705 with a reported size of 1,721MB I appear ot have Version 1.1 with a reported size of 37MB
and strangely VS Studio is reporting it's size as 1,721MB also (seems like something more than a coincidence)
Is there a clean way to eliminate the unneeded stuff and have a working VB Studio with .Net 1.1 that you are aware of?
Thanks, Tom
Tom I'm not sure about the sizes.
But it is not a problem to have both versions of .Net on the same machine so
that you can run applications that need 1.1. I don't think you can develop
with .Net 1.1 without upgrading to VS2003.
"Tom Leylan" <ge*@iamtiredofspam.com> schrieb Does anybody have any idea why my version of VS.Net doesn't accept the following syntax?
For Each f As FileInfo In d.GetFiles() sz += f.Length Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles() sz += f.Length Next f
Even the example given in the MSDN online help on For... Next doesn't compile without an error. I looked around for some setting but there doesn't seem to be one and I seem to have all the updates installed.
2002 and 2003 version installed? Whenever the project is opened in the
explorer, the right version is started, i.e. a 2002 project starts VB 2002.
(VB IDE: menu help->Info) ;)
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
The size issue is a glitch with Windows Installer that sometimes occurs when
two applications are installed together -- Windows reports the size of the
larger application for both installations. The Framework isn't actually
taking 1.7 GB of space your disk.
"Slonocode" <st***********@yahoo.com> wrote in message
news:bo*************@ID-137764.news.uni-berlin.de... Tom Leylan wrote:
I appear to have Version 1.0.3705 with a reported size of 1,721MB I appear ot have Version 1.1 with a reported size of 37MB
and strangely VS Studio is reporting it's size as 1,721MB also (seems like something more than a coincidence)
Is there a clean way to eliminate the unneeded stuff and have a working VB Studio with .Net 1.1 that you are aware of?
Thanks, Tom Tom I'm not sure about the sizes. But it is not a problem to have both versions of .Net on the same machine
so that you can run applications that need 1.1. I don't think you can
develop with .Net 1.1 without upgrading to VS2003.
"Armin Zingler" <az*******@freenet.de> wrote... 2002 and 2003 version installed? Whenever the project is opened in the explorer, the right version is started, i.e. a 2002 project starts VB
2002. (VB IDE: menu help->Info) ;)
Well that's it. It turns out I have VS 2000 and despite having the 1.1
framework it is referencing the 1.0 framework. I suppose I must have missed
an upgrade announcement or something :-)
A bit funny that the "check for updates" didn't tell me there was a new
version. A missed "sales opportunity" it would seem.
Also... there isn't any reason to actually have both versions and both
frameworks is there?
Thanks,
Tom
* "Tom Leylan" <ge*@iamtiredofspam.com> scripsit: That pinpointed the problem (thanks) now... I'm looking around the net but would you have an idea how I can clean up the .Net mess I have on my machine :-)
I appear to have Version 1.0.3705 with a reported size of 1,721MB I appear ot have Version 1.1 with a reported size of 37MB
and strangely VS Studio is reporting it's size as 1,721MB also (seems like something more than a coincidence)
Is there a clean way to eliminate the unneeded stuff and have a working VB Studio with .Net 1.1 that you are aware of?
If you are using VS.NET 2002: There is no way to get it work with .NET
1.1, you will have to upgrade to VS.NET 2003.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
* "Tom Leylan" <ge*@iamtiredofspam.com> scripsit: Does anybody have any idea why my version of VS.Net doesn't accept the following syntax?
For Each f As FileInfo In d.GetFiles() sz += f.Length Next f
I always have to explicitly declare the variable as follows:
Dim f As FileInfo
For Each f In d.GetFiles() sz += f.Length Next f
Even the example given in the MSDN online help on For... Next doesn't compile without an error. I looked around for some setting but there doesn't seem to be one and I seem to have all the updates installed.
"Inline declarations" will only work with VB.NET 2003, not VB.NET 2002.
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>
<http://www.plig.net/nnq/nquote.html>
Tom,
As the others have mentioned.
VS.NET 2002 requires & can only use .NET 1.0.
VS.NET 2003 requires & can only use .NET 1.1. VS.NET 2003 does have an
option that will set the app.config so your executable can run on .NET 1.0,
however it requires .NET 1.1 to compile said executable.
Check for updates never detected VS.NET 2003 as its not an update per se.
Hope this helps
Jay
"Tom Leylan" <ge*@iamtiredofspam.com> wrote in message
news:2f********************@twister.nyc.rr.com... "Armin Zingler" <az*******@freenet.de> wrote...
2002 and 2003 version installed? Whenever the project is opened in the explorer, the right version is started, i.e. a 2002 project starts VB 2002. (VB IDE: menu help->Info) ;)
Well that's it. It turns out I have VS 2000 and despite having the 1.1 framework it is referencing the 1.0 framework. I suppose I must have
missed an upgrade announcement or something :-)
A bit funny that the "check for updates" didn't tell me there was a new version. A missed "sales opportunity" it would seem.
Also... there isn't any reason to actually have both versions and both frameworks is there?
Thanks, Tom
"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote... Check for updates never detected VS.NET 2003 as its not an update per se.
Hi Jay: I think I'm clear on this (relatively speaking of course) now...
and while it isn't an "upgrade" it is a lost selling opportunity. I would
have upgraded long ago if I had been paying attention or I new that a new
"required" version was released.
I assumed (incorrectly) that I was working with the latest framework because
I had installed it.
Tom,
You could submit something to MS Wish if you have ideas on how to make it
better. http://register.microsoft.com/mswish/suggestion.asp
Hope this helps
Jay
"Tom Leylan" <ge*@iamtiredofspam.com> wrote in message
news:YR*******************@twister.nyc.rr.com... "Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote... Check for updates never detected VS.NET 2003 as its not an update per
se. Hi Jay: I think I'm clear on this (relatively speaking of course) now... and while it isn't an "upgrade" it is a lost selling opportunity. I would have upgraded long ago if I had been paying attention or I new that a new "required" version was released.
I assumed (incorrectly) that I was working with the latest framework
because I had installed it.
In article <bo*************@ID-137764.news.uni-berlin.de>, Slonocode wrote: Tom Leylan wrote:
I appear to have Version 1.0.3705 with a reported size of 1,721MB I appear ot have Version 1.1 with a reported size of 37MB
and strangely VS Studio is reporting it's size as 1,721MB also (seems like something more than a coincidence)
Is there a clean way to eliminate the unneeded stuff and have a working VB Studio with .Net 1.1 that you are aware of?
Thanks, Tom
Tom I'm not sure about the sizes. But it is not a problem to have both versions of .Net on the same machine so that you can run applications that need 1.1. I don't think you can develop with .Net 1.1 without upgrading to VS2003.
Technically, you can :) You just can't use VS.NET....
--
Tom Shelton
MVP [Visual Basic]
Tom Leylan wrote: Also... there isn't any reason to actually have both versions and both frameworks is there?
Thanks, Tom
The .Net framework was designed so that you could have multiple versions on
the same machine.
Part of the reason it is designed that way is to help eliminate the so
called "DLL Hell" issue.
VS will use the appropriate version of the framework and its not a problem
to have multiple versions of VS installed either.
--
Slonocode
"I've got a fever...and the only prescripiton is more cowbell"
"Slonocode" <st***********@yahoo.com> wrote... Part of the reason it is designed that way is to help eliminate the so called "DLL Hell" issue.
And that seems to be working out well. How ironic that we're finally
returning to the flexibility we had in MS-DOS :-)
VS will use the appropriate version of the framework and its not a problem to have multiple versions of VS installed either.
I was just curious why I would want to develop in 1.0 if I had 1.1. It's
upwardly compatible so old code will run in 1.1 just as easily. I'm getting
inundated with "version creep" these days.
Tom
"Armin Zingler" <az*******@freenet.de> schrieb 2002 and 2003 version installed? Whenever the project is opened in the explorer, the right version is started, i.e. a 2002 project starts VB 2002. (VB IDE: menu help->Info) ;)
BTW, I still use the old version (no "inline" declaration) because the
right-click on the inline type and selecting "go to definition" does not
work.
;-)
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
"Armin Zingler" <az*******@freenet.de> wrote.. BTW, I still use the old version (no "inline" declaration) because the right-click on the inline type and selecting "go to definition" does not work.
Armin: That's good to know. I somewhat doubt that I'll go to the inline
variation (though I might) I just didn't know why mine didn't work. I
assume there are other benefits of upgrading. :-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Frank de Bot |
last post by:
Hi,
occasionaly I find in my apache logs that fastcgi had a broken pipe
error with php running as fastcgi. the logs are like this:
--
> (32)Broken pipe:
> FastCGI: comm with server...
|
by: asj |
last post by:
interesting read from eweek about the dying hope surrounding .net
http://www.eweek.com/article2/0,,1184728,00.asp
The end of last month marked the third anniversary of Microsoft's launch
of...
|
by: David Pautler |
last post by:
I'm creating a web-based authoring tool where one form encompasses
several sections for editing. I'd like each section to have its own
reset button, so that use of that button affects only that...
|
by: Dicky Cheng |
last post by:
Hi,
I am using .net remoting technology. I set up a .net remoting client and
server in IIS. When the client calls the server, the server will run a long
duration method (30-60seconds). I have a...
|
by: Brian Blais |
last post by:
Hello,
I saw on a couple of recent posts people saying that casting the return
value of malloc is bad, like:
d=(double *) malloc(50*sizeof(double));
why is this bad? I had always thought...
| |
by: Frank Schumacher |
last post by:
.... i do a server roundtrip, my dynamical control set is broken.
Here is the plot:
I have a dynamical control with some dynamical buttons within. How many
of these buttons are shown depends...
|
by: Baron Samedi |
last post by:
My whole site is PHP. That means that there are various includes which
make up each page so that I can have standard headers/footers/menu, etc
If the content of one of these changes, it might break...
|
by: Spiros Bousbouras |
last post by:
At http://www.lysator.liu.se/c/dmr-on-noalias.html
Dennis Ritchie strongly denounces some noalias
qualifier which was proposed for addition to the language
at some point. Can someone give me some...
|
by: Steven D'Aprano |
last post by:
According to the Python docs, once an iterator raises StopIteration, it
should continue to raise StopIteration forever. Iterators that fail to
behave in this fashion are deemed to be "broken":
...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |