How do I determine if a form is loaded? I tried to use
if form.visible = true then
'code here
end if
but that caused the form's load sub routine to be executed and I can't have that. Someone out there have a good idea?
Printable View
How do I determine if a form is loaded? I tried to use
if form.visible = true then
'code here
end if
but that caused the form's load sub routine to be executed and I can't have that. Someone out there have a good idea?
You have to iterate thru the forms collection:
public Function FormLoded(sFormName as string) as Boolean
Dim frm as form
for each frm in forms
if frm.name = sFormName then
FormLoaded=true
exit function
end if
next 'frm
end function
If the name is not found then FormLoaded=False
Jared Youtsey
Worked great,thank you.