|
-
Oct 23rd, 2001, 09:20 AM
#1
Thread Starter
Member
Msgbox not appearing
The weirdest thing is happening. A message box is not appearing in my code during runtime, but does appear while stepping through it. The weird thing is if I put another fake message box before the one I want to show, the fake one doesn't show and the one I want to appears during runtime. Some system modal message boxes appear before the msgbox in question due to a subroutine called within this code. Does system modal cause problems? Very strange.
Here is the code:
For Test = 1 To UBound(TestArray)
ReDim TestEmailArray(1 To 1) As String
TestEmailArray(1) = TestArray(Test)
SendMail ("T")
If Invalid = "N" Then
TestAddresses = TestAddresses + vbNewLine + Mid(TestEmailArray(1), InStr(1, TestEmailArray(1), "-") + 2, Len(TestEmailArray(1)))
End If
Invalid = "N"
Next Test
'If I put a Msgbox "Test" here, the "Test" msgbox doesn't appear
'and the one below does
'Here is the message box that doesn't appear:
If Trim(TestAddresses) <> "" Then
MsgBox "ATTA WatchDog has sent an Email/Page to verify that" + vbNewLine + _
"the following addresses are valid: " + vbNewLine + TestAddresses + _
vbNewLine + vbNewLine + "Please verify with the person you emailed or paged.", vbSystemModal, "ATTA WatchDog"
End If
-
Oct 23rd, 2001, 09:25 AM
#2
Frenzied Member
I think that it is hard to say, when we can't see what is going on in the subs and functions you are calling from this procedure. Could they be a problem?
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
|