[/code]Public Sub SaveRecord()
uData.Name = frmMain.txtName.Text
Put #gFileNum, gCurrentRecord, gPerson
End Sub[VB/]
The error is 'Put' is not declared. Do i have to import something, or is 'Put' not featured in .NET? If its not what replaces Put?
Wait wrong code:
Option Explicit On
Module modUserData
Structure PersonInfo
Name As String
End Structure
End Module
it says declaration expected for 'name'.
since 'type' is no longer supported in vb .NET, i have to use 'structure' but there is somehing wrong with this:
Module modUserData
Structure PersonInfo
End Structure
End Module
There is already an error here. what is the correct code for structures.
I'm playin around with C# to get the feel of it, and I was tying to declare a new form as the main form. then load up both forms.
private void frmMain_Load(object sender, EventArgs e)
{
Form frmHey = New frmMain();
frmHey = myForm;
frmHey.Show();
}
}
}