VB.NET - personalized help with vb.net hydrological modeling code

Asked By Cara
02-Sep-10 08:31 AM
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

  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.
  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

  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
help
visual studio installation problem Actually, my OS is Windows Xp with service pack2.I added service pack3 to install visual studio2010.after that i tryed to installed, but am getting SETUP FAILED due to "Windows XP is not installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual F# 2.0 Runtime was not attempted to be installed. [08 / 10 / 11, 14:26:00] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio Macro Tools was not attempted to be installed. [08 / 10 / 11, 14:26:00] VS70pgui attempted to be installed. [08 / 10 / 11, 14:26:01] VS70pgui: [2] DepCheck indicates Microsoft Visual Studio 2010 Professional - ENU was not attempted to be installed. [08 / 10 / 11, 14:26:01
Difference between vb and vb.net Hai, I want to know about the main difference between vb and vb.net. • The greatest change in VB6 and VB.NET is of runtime environment. VB6 used the VB-Runtime while VB.NET uses the .Net Common Language Runtime (.Net CLR). The CLR is much better designed and
types? (B) What is concept of Boxing and Unboxing ? (B) What is the difference between VB.NET and C#? (I) what is the difference between System exceptions and Application exceptions? (I)What code? (I)What is COM? (A) What is Reference counting in COM? (A) Can you describe IUKNOWN interface in short? (I) Can you explain what DCOM is? (B) How do we inherit? (I) what are two different types of remote object creation mode in .NET ? (A) Describe in detail Basic of SAO architecture of Remoting? (A) What are the situations you will are different properties provided by Object-oriented systems? (B) How can we achieve inheritance in VB.NET? (I) what are abstract classes? (B) What is a Interface? (A) What is difference between prevent a class from overriding? (I) what is the use of “Must inherit” keyword in VB.NET? (I) Do interface have accessibility modifier. (A) What are similarities between Class and structure? (A
Differences for vb.net and c# with Example Dear all Differences for vb.net and c# with Example., plz give the solutions Thanks to all Hi See the bellow comparission :: This comparission is with syntax and example. . . Comments VB.NET 'Single line only Rem Single line only C# / / Single line / * Multiple line * / / / / XML comments on single line / * * XML comments on multiple lines * / Program Structure VB.NET Imports System Namespace MyNameSpace Class HelloWorld 'Entry point which delegates to C-style main Private