code:If (StrComp(LCase(sCommand), "/xform", vbTextCompare) = 0) Then
sResult = "I am opening a form..."
frm1.Show vbModal, Screen.ActiveForm
ParseCommand = True
Exit Function
End If
the form opens before "I am opening a form..." gets sent on the network. . is there any way to avoid that?
sResult is the RESULT of the function your executing so its sent as the function result when the function ends. everything else in the function is executed immediately. so thats why the form is opened before the text is sent.
Posts: 4714 Reputation: 42
43 / /
Joined: Jan 2003
RE: VB-form opens before sResult gets sent
quote:Originally posted by zigomar10
the form opens before "I am opening a form..." gets sent on the network. . is there any way to avoid that?
Of course it opens before the string is sent. That's because Plus! is "who" sends the sResult and it only gets it after the ParseCommand function has finished and then that function has already executed the .Show method.