Hi. I am having a small problem in InfoPath 2007. I have writen a function to calculate a value, but i cannot return it.
Public Sub btnSaveNet_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)
dim m_intSemFlag as integer
dim m_strRasp as string
m_intSemFlag = 0
m_strRasp="1"
Call SelectInUseNot(m_intSemFlag, m_strRasp)
End Sub
Public Sub SelectInUseNot(ByVal tmp_intSemFlag As Integer, ByVal tmp_strRasp As String)
Select Case tmp_strRasp
Case "1"
m_strRasp = "Yes"
Case "2"
m_strRasp = "No"
Case ""
MessageBox.Show("Choose if the rack is in use or not.", "Information.", MessageBoxButtons.OK, MessageBoxIcon.Information)
tmp_intSemFlag = 1
End Select
m_strRasp variable should become 'Yes' after this but it does not. It stays "1". Why is that? Thank you!