M
Marc Champagne
Hi folks,
With the following code sample in a window's form (VB.NET
7)...
Structure CustomerRecord
<VBFixedString(12)> Public IDee As String
<VBFixedString(45)> Public Name As String
End Structure
Shared CusRec As CustomerRecord
Shared Cust(500) As CustomerRecord
Private Sub GetRecs()
Dim File As Integer
Dim Num As Integer = 0
Dim CustFile As String = "c:\cust.txt"
File = FreeFile()
FileOpen(File, CustFile, _
OpenMode.Random, , ,Len(CusRec))
While (Not EOF(File))
FileGet(File, CusRec) <<< problem is here
Cust(Num) = CusRec
Num = Num + 1
End While
FileClose(File)
End Sub
Using VS.NET 7, When Strict is ON, I am unable to get the
above to work, any ideas as to how I get it to work?
Type casting maybe? (if so, I'm unable to find the right
syntax)
The Task List shows the following:
Overload resolution failed because no accessible 'FileGet'
can be called with these arguments:
Many Thanks!
Marc
With the following code sample in a window's form (VB.NET
7)...
Structure CustomerRecord
<VBFixedString(12)> Public IDee As String
<VBFixedString(45)> Public Name As String
End Structure
Shared CusRec As CustomerRecord
Shared Cust(500) As CustomerRecord
Private Sub GetRecs()
Dim File As Integer
Dim Num As Integer = 0
Dim CustFile As String = "c:\cust.txt"
File = FreeFile()
FileOpen(File, CustFile, _
OpenMode.Random, , ,Len(CusRec))
While (Not EOF(File))
FileGet(File, CusRec) <<< problem is here
Cust(Num) = CusRec
Num = Num + 1
End While
FileClose(File)
End Sub
Using VS.NET 7, When Strict is ON, I am unable to get the
above to work, any ideas as to how I get it to work?
Type casting maybe? (if so, I'm unable to find the right
syntax)
The Task List shows the following:
Overload resolution failed because no accessible 'FileGet'
can be called with these arguments:
Many Thanks!
Marc