'************************************************************************* '**函 数 名:FromIsShow '**输 入:str(String) -窗体名 '**输 出:(Boolean) -true为已经打开 '**功能描述: '**全局变量: '**调用模块: '**作 者:影子 '**日 期:2004-12-22 11:48:20 '**修 改 人: '**日 期: '**版 本:V1.0.0 '************************************************************************* Public Function FromIsShow(str As String) As Boolean Dim pd As Boolean pd = False Dim temp For Each temp In Forms If temp.Name = str Then FromIsShow = True Set temp = Nothing Exit Function End If Next FromIsShow = False Set temp = Nothing End Function
'**函 数 名:FromIsShow
'**输 入:str(String) -窗体名
'**输 出:(Boolean) -true为已经打开
'**功能描述:
'**全局变量:
'**调用模块:
'**作 者:影子
'**日 期:2004-12-22 11:48:20
'**修 改 人:
'**日 期:
'**版 本:V1.0.0
'*************************************************************************
Public Function FromIsShow(str As String) As Boolean
Dim pd As Boolean
pd = False
Dim temp
For Each temp In Forms
If temp.Name = str Then
FromIsShow = True
Set temp = Nothing
Exit Function
End If
Next
FromIsShow = False
Set temp = Nothing
End Function