What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » VB-form opens before sResult gets sent

VB-form opens before sResult gets sent
Author: Message:
zigomar10
Full Member
***

Avatar

Posts: 345
– / Male / –
Joined: Mar 2003
O.P. VB-form opens before sResult gets sent
When I type the following code:
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. :@+o(8o|:S:o:blah:. is there any way to avoid that? :rolleyes: *-)
08-29-2003 09:25 AM
Profile PM Find Quote Report
chris
Veteran Member
*****


Posts: 1137
Reputation: 2
36 / Male / –
Joined: May 2003
RE: VB-form opens before sResult gets sent
what are you makeing?
08-29-2003 10:40 AM
Profile PM Find Quote Report
Whacko
Full Member
***

Avatar

Posts: 209
Reputation: 1
40 / Male / –
Joined: Apr 2002
RE: VB-form opens before sResult gets sent
i suggest you read a bit more about programming ;)

nah just kidding :P

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.
I code in:
C
C++
Delphi
Visual Basic
Pascal :P
08-29-2003 11:00 AM
Profile PM Web Find Quote Report
wipey
Full Member
***

Avatar
.oOo.

Posts: 310
37 / – / –
Joined: Jul 2003
RE: VB-form opens before sResult gets sent
timer?:P

[Image: msgplus468banner2.gif]

www.wipey.tk 7184 days, 10 hours, 18 minutes, 31 seconds ago until my 18th birthday(b)

08-29-2003 02:19 PM
Profile PM Web Find Quote Report
Choli
Elite Member
*****

Avatar
Choli

Posts: 4714
Reputation: 42
43 / Male / Flag
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. :@+o(8o|:S:o:blah:. is there any way to avoid that? :rolleyes: *-)

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.
Messenger Plus! en espaņol:
<< http://www.msgpluslive.es/ >>
<< http://foro.msgpluslive.es/ >>
:plus4:
08-29-2003 06:39 PM
Profile PM Find Quote Report
wipey
Full Member
***

Avatar
.oOo.

Posts: 310
37 / – / –
Joined: Jul 2003
RE: VB-form opens before sResult gets sent
try putting sResult = .... after the msgbox code, if that dont work then maybe use a timer to delay the messagebox

[Image: msgplus468banner2.gif]

www.wipey.tk 7184 days, 10 hours, 18 minutes, 31 seconds ago until my 18th birthday(b)

08-29-2003 09:00 PM
Profile PM Web Find Quote Report
Whacko
Full Member
***

Avatar

Posts: 209
Reputation: 1
40 / Male / –
Joined: Apr 2002
RE: RE: VB-form opens before sResult gets sent
quote:
Originally posted by wipey
try putting sResult = .... after the msgbox code, if that dont work then maybe use a timer to delay the messagebox




ehm lol?? the point is... he wants to display the message BEFORE the form opens :P
I code in:
C
C++
Delphi
Visual Basic
Pascal :P
08-29-2003 10:01 PM
Profile PM Web Find Quote Report
wipey
Full Member
***

Avatar
.oOo.

Posts: 310
37 / – / –
Joined: Jul 2003
RE: VB-form opens before sResult gets sent
shh I'm slow:P....I still think timer if it's in vb:P:D

[Image: msgplus468banner2.gif]

www.wipey.tk 7184 days, 10 hours, 18 minutes, 31 seconds ago until my 18th birthday(b)

08-29-2003 10:22 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On