upper bounds equivalent
Managed C++/CLI
1
Posts
1
Posters
2
Views
1
Watching
-
i have the Following Code from vb.net 2008 , can anyone assist me in getting this same functionality to c++ any help would be appreciated Public Sub New() Try If ORIHoles Is Nothing Then ReDim ORIHoles(49) Dim ff As Integer = FreeFile() Dim tempstr As String Dim atempstr() As String FileOpen(ff, "postable.csv", OpenMode.Input, OpenAccess.Read, OpenShare.Shared) Do While Not EOF(ff) tempstr = LineInput(ff) atempstr = tempstr.Split(",") If atempstr.GetUpperBound(0) = 2 Then ORIHoles(CInt(atempstr(0))).Angle = CDbl(atempstr(1)) ORIHoles(CInt(atempstr(0))).Hypot = CDbl(atempstr(2)) End If Loop FileClose(ff) End If Catch ex As Exception GeneralErrorHandler(ex.ToString) End Try End Sub