R
Robert Styma
I am converting a VB6 program to VB .net and trying to
get the last vestages of VB6 out. There are many places in this
program that use fileopen, followed by a bunch of calls to the input
function to get data and then fileclose. The files were created with
fileopen/print/println/fileclose so all the quotes and spaces are in the
correct places for the input function. It is not practical to change the
format
of these files.
My question involves, what do I use in place of the input() call?
My searches on Google have been less than helpful. The input function is
not really a good search term.
Here is a code fragment which shows what I am looking at:
Dim ClientFileName As String
Dim EventTitle As String = ""
Dim EventRound As String = ""
Dim StatChange As Short
Dim FirstReq As String = ""
ClientFileName = "C:\TABW\JUDGES\HOST.TAB"
On Error GoTo ReadError
FileOpen(1, ClientFileName, OpenMode.Input, OpenAccess.Read,
OpenShare.Shared
Input(1, EventTitle)
Input(1, EventRound)
Input(1, StatChange)
Input(1, FirstReq)
FileClose(1)
Sometimes I a reading numbers and sometimes character strings (in quotes).
Any pointers would be most appreciated.
get the last vestages of VB6 out. There are many places in this
program that use fileopen, followed by a bunch of calls to the input
function to get data and then fileclose. The files were created with
fileopen/print/println/fileclose so all the quotes and spaces are in the
correct places for the input function. It is not practical to change the
format
of these files.
My question involves, what do I use in place of the input() call?
My searches on Google have been less than helpful. The input function is
not really a good search term.
Here is a code fragment which shows what I am looking at:
Dim ClientFileName As String
Dim EventTitle As String = ""
Dim EventRound As String = ""
Dim StatChange As Short
Dim FirstReq As String = ""
ClientFileName = "C:\TABW\JUDGES\HOST.TAB"
On Error GoTo ReadError
FileOpen(1, ClientFileName, OpenMode.Input, OpenAccess.Read,
OpenShare.Shared
Input(1, EventTitle)
Input(1, EventRound)
Input(1, StatChange)
Input(1, FirstReq)
FileClose(1)
Sometimes I a reading numbers and sometimes character strings (in quotes).
Any pointers would be most appreciated.