D
Dave Cullen
I want to call a function using my own data type as an argument. The
declaration for my function looks like this:
Public Function CreateCardInfo(ByVal data As WoData)
VB.NET balks at this, saying:
'data' cannot expose a Friend type outside of the Public class
'frmMain'.
The Structure WoData is defined in a module, with Public access:
Public Structure WoData
Dim CUST_NAME As String
Dim MFG_SITE As String
Dim PO_NO, SO_NO, LINE_NO As String
Dim DUE_DATE As String
Dim WO_NO As String
Dim QTY As Integer
End Structure
What to do, please?
Thanks
declaration for my function looks like this:
Public Function CreateCardInfo(ByVal data As WoData)
VB.NET balks at this, saying:
'data' cannot expose a Friend type outside of the Public class
'frmMain'.
The Structure WoData is defined in a module, with Public access:
Public Structure WoData
Dim CUST_NAME As String
Dim MFG_SITE As String
Dim PO_NO, SO_NO, LINE_NO As String
Dim DUE_DATE As String
Dim WO_NO As String
Dim QTY As Integer
End Structure
What to do, please?
Thanks