|
-
March 23rd, 2001, 09:31 AM
#1
If Else
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|