好的,这可能很简单,但我在任何地方都找不到答案。我正在尝试创建一个程序,我需要从另一个子访问私有子中的变量。我对VB很陌生。我也想不通为什么我不能从Sub访问我的orgVist
文本框。getInputs
Private Sub displayBtn_Click(sender As Object, e As EventArgs) Handles displayBtn.Click
Dim organization As String
Dim date as String
Dim location As String
Dim MandEexp As Decimal
Dim airFareExp As Decimal
Dim lodging As Decimal
Dim taxi As Decimal
End Sub
Sub getInputs(ByRef organization As String, ByRef date as String, ByRef location As String, ByRef MandEexp As Decimal, ByRef airFareExp As Decimal,
ByRef lodging As Decimal, ByRef taxi As Decimal)
organization = orgVistTB.text
End Sub
Private Sub orgVisitTB_TextChanged(sender As Object, e As EventArgs) Handles orgVisitTB.TextChanged
End Sub