Marioth
19th May 2009, 19:01
Hi All,
I am using the following function within my scrip but for an unknown reason
my cmf.MessageObject is always empty or better the message.str return always gives an error. Does anybody has an idea or maybe I am doing something wrong?
function send.message.to.person()
{
ret = cmf.messageDialog(2,CMF.MESSAGE)
on case ret
case -1:
return
case -2:
return
endcase
ret = cmf.sendToPerson(cmf.MessageObject, cmf.Addresslist,cmf.ShowMessage, true, message.str, true, spool.fileout)
if not isspace(message.str) then
if ret < 0 then
mess("ttcmf01303",1,message.str)
else
mess("ttstosoclose2",1,message.str)
endif
endif
cmf.stopAllServices()
}
Thanks in advance,
Mario
I am using the following function within my scrip but for an unknown reason
my cmf.MessageObject is always empty or better the message.str return always gives an error. Does anybody has an idea or maybe I am doing something wrong?
function send.message.to.person()
{
ret = cmf.messageDialog(2,CMF.MESSAGE)
on case ret
case -1:
return
case -2:
return
endcase
ret = cmf.sendToPerson(cmf.MessageObject, cmf.Addresslist,cmf.ShowMessage, true, message.str, true, spool.fileout)
if not isspace(message.str) then
if ret < 0 then
mess("ttcmf01303",1,message.str)
else
mess("ttstosoclose2",1,message.str)
endif
endif
cmf.stopAllServices()
}
Thanks in advance,
Mario