I'm writing a VB class that handles opening and managing form's
In VFP you can do:
procedure openform
lparameters cformname
oform = createobject(cformname)
oform.show()
The store to object 'oForm' to an array
In VB, I have:
Public Sub LaunchForm(sFormName As String)
Dim oForm As Form
Set oForm = New sFormName
Load oForm
oForm.Show
End Sub
The problem is that VB doesn't know what to do with the 'sFormName'
variable. I get a 'User-Defined data type not found' error.
How do I pass in a form name to this routine?
Many Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people