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