|
-
Oct 5th, 2000, 09:09 AM
#1
Thread Starter
Lively Member
Whats the easiest way to check if a form is loaded or not ???
Thanks
-
Oct 5th, 2000, 09:14 AM
#2
Frenzied Member
Maybe
In your form load put a boolean variable and set it to true
, and then do if var = true then form is loaded.
Code:
Dim isLoad as Boolean
Private sub Form_load()
isLoad = True
End sub
Try it, maybe that will make it!!!
-
Oct 5th, 2000, 09:24 AM
#3
Thread Starter
Lively Member
Its okay, this works...
For i = 0 To Forms.count - 1
If Forms(i).name = myform Then Unload myform
Next i
-
Oct 5th, 2000, 12:32 PM
#4
Code:
Dim bFormLoaded As Boolean
Private Sub Form_Load()
bFormLoaded = True
End Sub
Private Sub Form_Activate()
If Not bFormLoaded Then Exit Sub
End Sub
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
|