Anne Smith
March 23rd, 2001, 08:31 AM
Hi There,
I'm very new at VB programming. Right now the below code will load the form even if it has been filled already. What I want to know the syntax of checking to me sure that only if the form is not filled than the form should load in the LostFocus event. If the form is already filled, the form should not load. Can someone please help.
private Sub ctlDoctorInformation_LostFocus(Index as Integer)
If ctlDoctorInformation (Index).GetChoiceValue = "Y" then
Dim myDoctorInformation as DoctorInformationServer.DoctorIndormation
set myDoctorInformation = new DoctorInformationServer.DoctorInformation
Call myDoctorInformation.LoadForm(m_NonMedicalEvidence.GetItemByKey(Trim$(Str$(Index)), nothing), _ m_iMyEvidFunctions.OptionValueToBoolean(ctlUsualPhysician(Index).GetChoiceValue), m_Language)
set myDoctorInformation = nothing
End If
End Sub
Thanks in advance!
Anne
I'm very new at VB programming. Right now the below code will load the form even if it has been filled already. What I want to know the syntax of checking to me sure that only if the form is not filled than the form should load in the LostFocus event. If the form is already filled, the form should not load. Can someone please help.
private Sub ctlDoctorInformation_LostFocus(Index as Integer)
If ctlDoctorInformation (Index).GetChoiceValue = "Y" then
Dim myDoctorInformation as DoctorInformationServer.DoctorIndormation
set myDoctorInformation = new DoctorInformationServer.DoctorInformation
Call myDoctorInformation.LoadForm(m_NonMedicalEvidence.GetItemByKey(Trim$(Str$(Index)), nothing), _ m_iMyEvidFunctions.OptionValueToBoolean(ctlUsualPhysician(Index).GetChoiceValue), m_Language)
set myDoctorInformation = nothing
End If
End Sub
Thanks in advance!
Anne