CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums
Results 1 to 7 of 7

Thread: upperbounds issue with c++ from a csv file

Threaded View

  1. #1
    Join Date
    Feb 2020

    Red face upperbounds issue with c++ from a csv file

    i have the Following 2008 routine i am trying to get c++ to have the same functionality having alot of issues with c++ conversion, any help with this would be great...

    Public Sub New()
                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
                End If
            Catch ex As Exception
            End Try
    	End Sub
    Last edited by 2kaud; February 19th, 2020 at 11:57 AM. Reason: Added code tags

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)