personalized help with vb.net hydrological modeling code

Asked By Cara
02-Sep-10 08:31 AM
Earn up to 0 extra points for answering this tough question.
Hello,

I am looking for someone to help me with a code already developed for hydrological research. I am making minor changes to the large code, but I am not that familiar with vb.net and I am going nowhere.

My laboratory has some money to pay someone for the work depending on how much time it takes.

Would anyone be willing to help? Or how would I find someone to help? I would need to explain how it works, so that is why I am requesting one on one help.

Thank you,

Cara

  re: personalized help with vb.net hydrological modeling code

Sasha Kotlo replied to Cara
02-Sep-10 08:36 AM
There are a lot of users here who are proficient with VB.NET as far as I'm aware. You can also try some freelancing websites like elance.com (my recommendation), freelancer.com. You can post a project there and people will offer you their services as well as pricing for the work you require.

Best of luck.

  re: personalized help with vb.net hydrological modeling code

Cara replied to Sasha Kotlo
02-Sep-10 09:57 AM
Thanks Sasha, I posted an add on elance. No news yet. Perhaps there is someone on this site who would be willing to debug the code with me. Here is a letter I have written to describe the problem:

Hello vb.neters,

I think I have a problem after modifying my VB.net code. The project does not seem to be compatible with my new variables. A friend told me I should start a new project and save it, but I don’t really see how this will work.

Basically, the debugger says there is a problem with reading with StreamReader for several variables like C in the code below. It says ‘conversion from string to type integer is not valid’.

Would any of you vb.net gurus know how to solve this?

Example where the problem exists:

Public Sub Read(ByVal SR As IO.StreamReader)
        Dim Flag As String = SR.ReadLine
        Dim V As Double = CDbl(SR.ReadLine)
        Me.LowerBound = CDbl(SR.ReadLine)
        Me.UpperBound = CDbl(SR.ReadLine)
      End Sub
      Public Sub Read(ByVal SR As IO.StreamReader)
        Dim Flag As String = SR.ReadLine
        Dim V As Double = CDbl(SR.ReadLine)
        Dim C As Integer = CInt(SR.ReadLine)
        Me.Clear()
        For i As Integer = 0 To C - 1
          Dim PS As New ParametersSet
          PS.Read(SR)
          Me.Add(PS)
        Next
      End Sub

Thank you in advance,


Cara

  re: personalized help with vb.net hydrological modeling code

Sasha Kotlo replied to Cara
02-Sep-10 10:14 AM
Well the error you're encountering is quite obvious from the error message itself. Let me help you a little bit. When you open up a Visual Studio and while watching the code if you hover your mouse over a method (in this case the ReadLine) it will show you the return type of that method (in this case a string) while you declared your variable to an Integer. So to solve this you'd need to convert the string to int like this (this is C# variant I'm not sure of the VB.NET one but that's easy to check):

Convert.ToInt32(SR.ReadLine) instead of:

CInt(SR.ReadLine)

In your code you're casting the value to an integer instead of converting it.

Hope that helps you. If you got more questions feel free to ask them.

Regards.
Create New Account
A) What is Reference counting in COM? (A) Can you describe IUKNOWN interface in short? (I) Can you explain what DCOM different types of remote object creation mode in .NET ? (A) Describe in detail Basic of SAO architecture of Remoting? (A) What diagram? (A) Explain all parts of a deployment diagram? (A) Describe the various components in sequence diagrams? (A) What are the elements in State Chart diagrams? (A)Describe different elements in Static Chart diagrams? (A)Explain the different references of your previous company whom i can contact ? 23 Visual Studio .NET 2003 \ SDK \ v1.1 \ Bin". Note that i had you work on staurday’ and sunday’s ? 27 √ Go to “Visual Studio Command Prompt”.See below figure to “Visual studio Command Prompt”.Note the samples are compiled in 2005 but
with me. Here is a letter I have written to describe the problem: Hello vb.neters, I think I have a the debugger says there is a problem with reading with StreamReader for several variables like C in the code below. It the problem exists: Public Sub Read(ByVal SR As IO.StreamReader) Dim Flag As String = SR.ReadLine Dim V As Double ReadLine) End Sub Public Sub Read(ByVal SR As IO.StreamReader) Dim Flag As String = SR.ReadLine Dim V As Double help you a little bit. When you open up a Visual Studio and while watching the code if you hover your mouse
stand-alone Javascript files is what I'm going to describe. I'm going to show you how to have your js files need to be compiled as embedded resources within Visual Studio so select the .js files and set their build action Assembly executingAssembly = Assembly.GetExecutingAssembly(); Stream str = executingAssembly.GetManifestResourceStream(aScript); using(StreamReader sr = new StreamReader(str, Encoding.ASCII)) { return sr.ReadToEnd(); } } Within your page you
which is batter for visual studio 2008 or visual studio 2010. Can any one tell me for I want to install visual studio so which is batter for visual studio 2008 or visual studio 2010 & why is batter?? Please tell me also diff between
microsoft visual studio installation For getting the features of crystal report11 , which version of microsoft visual studio i 've to install.or Shall i install crystal report 11 for microsoft visual studio 2005 Crystal Report 11 is not directly compatible with VS2005 for the Crystal Reports products that are included in Microsoft Visual Studio .NET 2003, in Microsoft Visual Studio 2005, and in Microsoft Visual Studio 2008. All other support
How to install a microsoft visual studio 2008 / 2010 command prompt . How to install a microsoft visual studio 2008 / 2010 command prompt for visual studio 2010 ? In there another option except coming from a previous installation of visual studio 2010 ? http: / / connect.microsoft.com / VisualStudio / feedback / details / 498799 / visual-studio-2010-command-prompt found solution here. . http: / / weblogs.asp.net
how to add c python language to visual studio 2008 hi. . I want work c python language to visual studio . . so how to add c python to visual studio. . kindly advise me thanks You can go with Python Tools for Visual Studio add on IronPython Studio is a free full IDE (Integrated Development Environment) for the IronPython example that is included in the VS SDK. IronPython Studio is based on the Visual Studio 2008 Shell runtime (royalty
New Features in Visual Studio 11 and .NET Framework 4.5 The first thing you'll notice after installing the bits is that Visual Studio 11 loads FAST. Very fast, compared to Visual Studio 2010! Below you'll find a summary of some of the new features and enhancements in Visual Studio 11. Visual Studio 11 Developer Preview is out. You can download the web