So what happens if you change the flow of your code to look more like this (as Peter Suter suggested). I'm not a VB'er so syntax could be wrong.
Dim sDir As String = "" Dim val As Integer = FaixasInferior.Count If val = 0 then FaixasCarrega(.....) <...> Then put a break point on the FaixasCarrega call line, and on the IF test line. At the point of the test line do val and FaixasInefior differ? Simeon. On 17/02/06, Vitor Dantas de Andrade <[EMAIL PROTECTED]> wrote: > I´m sorry guys, > > I only check this list from time to time ... > > Here´s the link to the screenshot... > > http://201.17.129.58/publico/code.jpg > > The tooltip shows the value of Count, but the yellow line shows that the > code did what it should´nt ... > > Vitor > > -----Mensagem original----- > De: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Em nome de Gregory Miley > Enviada em: segunda-feira, 13 de fevereiro de 2006 11:12 > Para: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Assunto: Re: [ADVANCED-DOTNET] .NET IS CRAZY ... > > Perhaps upload the image to your website and provide a link. > > Thanks, > Greg > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Vitor Dantas de > Andrade > Sent: Sunday, February 12, 2006 10:25 > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: RES: [ADVANCED-DOTNET] .NET IS CRAZY ... > > HI, > > The code is right, i´m doing it in VB ... It´s realy a bug on Vstudio, i > sent a screenshot to prove it, but i can´t post it on this list. > > Thanks, > Vitor > > -----Mensagem original----- > De: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Em nome de Gregory Miley > Enviada em: segunda-feira, 13 de fevereiro de 2006 11:01 > Para: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Assunto: Re: [ADVANCED-DOTNET] .NET IS CRAZY ... > > If you are writing in C# then I would make sure you are comparing not > setting: > > if( lista.Count == 0) { /* ... */ } > > Instead of: > > if( lista.Count = 0) { /* ... */ } > > > Since we still do not have any real code to go by, I can only assume this > might be the problem. > > Greg > > > -----Original Message----- > From: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] On Behalf Of Vitor Dantas de > Andrade > Sent: Sunday, February 12, 2006 10:07 > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: RES: [ADVANCED-DOTNET] .NET IS CRAZY ... > > Hi everybody, > > Sorry about the code ... I sent the picture but you didn´t get it ... > > The code is very simple, its like : > > If lista.Count = 0 then FillFunction() > > The problem is, when i get to this line, the debugger shows lista.Count = 3, > but the code enters the FillFunction() Lista is a generics list > > I found that the code is running right, but Visual Studio is showing the > wrong value on the watch list. It´s a bug, but on Vstudio rather then the > framework ... > > Thanks, > > Vitor > > > -----Mensagem original----- > De: Discussion of advanced .NET topics. > [mailto:[EMAIL PROTECTED] Em nome de Frans Bouma Enviada > em: sexta-feira, 10 de fevereiro de 2006 06:32 > Para: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Assunto: Re: [ADVANCED-DOTNET] .NET IS CRAZY ... > > > Sorry, I was only joking, I do not suspect the framework is crazy. > > I know, Paul ;) > > > My COM days are thankfully a distant memory!!! > > I don't understand this that much, but perhaps you had a horrific > experience with the wonderful world of COM and DCOM and I can fully > understand you therefore are happy with every millimeter you can get away > from it ;) > > FB, who has to admit 'Essential COM' was a bit complex > > > > > [EMAIL PROTECTED] > > > > > > > > > > >From: Frans Bouma <[EMAIL PROTECTED]> > > >Reply-To: "Discussion of advanced .NET topics." > > ><ADVANCED-DOTNET@DISCUSS.DEVELOP.COM> > > >To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > > >Subject: Re: [ADVANCED-DOTNET] .NET IS CRAZY ... > > >Date: Fri, 10 Feb 2006 10:12:10 +0100 > > > > > > > The whole framework is corrupt!!!!! > > > > > > > > I'm going back to ASP et. COM!!!! > > > > > > COM and DCOM aren't that bad, the performance of DCOM still > > >beats .NET's equivalents hands down and ATL is pretty cool too. > > >It's just that this cool tech is simply lacking easy to use > > tooling ala > > >delphi. I mean: delphi managed to offer C++ speed > > programming and also > > >COM/DCOM creating abilities without the 'don't touch this comments, > > >bubba! we know they're just comments but they're precious material, > > >alright?'-goo. > > > > > > FB > > > > > >=================================== > > >This list is hosted by DevelopMentorR http://www.develop.com > > > > > >View archives and manage your subscription(s) at > > >http://discuss.develop.com > > > > =================================== > > This list is hosted by DevelopMentorR http://www.develop.com > > > > View archives and manage your subscription(s) at > > http://discuss.develop.com > > > > =================================== > This list is hosted by DevelopMentor. http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > > =================================== > This list is hosted by DevelopMentor(r) http://www.develop.com > > View archives and manage your subscription(s) at http://discuss.develop.com > =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com