Re: SendMessage eata type mismatch error (General questions)
sorry, i've done a mistake in the last post. here is the correct code:
[code]
FUNCTION SendMsg
PARAMETRES lcMsg, lcWho
LOCAL oMsg, lnSec
oMsg = NULL
oMsg = CREATEOBJECT( WeOnlyDo.XMPPMessage )
oMsg.Text = ALLTRIM(lcMsg)
THIS.oXMPP.SendMessage(lcWho,oMsg)
lnSec = SECONDS()
DO WHILE THIS.oXMPP.State <> 5 .AND. (SECONDS()-lnSec)<2
DOEVENTS
ENDDO
IF !EMPTY(oMsg.ErrorCode)
DO S_ErrMes WITH (oMsg.ErrorText)
RETURN .F.
ELSE
RETURN .T.
ENDIF
[/code]
Complete thread:
- SendMessage eata type mismatch error - yonko, 2011-10-28, 09:51
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 10:34
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 14:53
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 15:15
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 15:59
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 16:05
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 16:18
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 16:42
- Re: SendMessage eata type mismatch error - wodDamir, 2011-10-28, 17:25
- Re: SendMessage eata type mismatch error - yonko, 2011-10-30, 16:35
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-30, 19:40
- Re: SendMessage eata type mismatch error - yonko, 2011-10-30, 16:35
- Re: SendMessage eata type mismatch error - wodDamir, 2011-10-28, 17:25
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 16:42
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 16:18
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 16:05
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 15:59
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 15:15
- Re: SendMessage eata type mismatch error - yonko, 2011-10-28, 14:53
- Re: SendMessage eata type mismatch error - woddrazen, 2011-10-28, 10:34