M
makai
Guest
the following code works just fine:
but if I put in
Option Strict On
the line
FileGet(1, y, 1)
will not compile due to the fact that y is not in the overloaded parameter list
1. Does anyone know the correct conversion code?
2. I like the idea of sticking with Strict On - is this not a good idea?
Code:
Public Class Form1
Inherits System.Windows.Forms.Form
Structure x
Dim j As Short
End Structure
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles Button1.Click
Dim y As x
FileOpen(1, "c:\t1.txt", OpenMode.Random, , , Len(y))
FileGet(1, y, 1)
FileClose(1)
MsgBox(y.j)
End Sub
End Class
but if I put in
Option Strict On
the line
FileGet(1, y, 1)
will not compile due to the fact that y is not in the overloaded parameter list
1. Does anyone know the correct conversion code?
2. I like the idea of sticking with Strict On - is this not a good idea?
Last edited by a moderator: