Public Member Functions | |
| HRESULT | Clear (void) |
| HRESULT | AddMsg ([in] IRdNtChatMsg *pRdNtChatMsg) |
| HRESULT | GetNumMsgs ([out, retval] RtDWORD *pdwNumMsgs) |
| HRESULT | GetMsg (RtDWORD dwMsgNum, IRdNtChatMsg **ppRdNtChatMsg) |
Properties | |
| RtDWORD * | MaxNumOfMsgs [get] |
| RtDWORD | MaxNumOfMsgs [set] |
| HRESULT IRdNtChat::Clear | ( | void | ) |
Delete all the chat messages.
RdNtChat.Clear();
| HRESULT IRdNtChat::AddMsg | ( | [in] IRdNtChatMsg * | pRdNtChatMsg | ) |
Add new message.
| pRdNtChatMsg | [in] New chat message IRdNtChatMsg object. |
RdNtChat = System.CreateDO("Network Package/Net Chat Data");
RdNtChat.AddMsg(RdNtChatMsg);
| HRESULT IRdNtChat::GetNumMsgs | ( | [out, retval] RtDWORD * | pdwNumMsgs | ) |
Get number of stored messages
dwNumMsgs = RdNtChat.GetNumMsgs();
| HRESULT IRdNtChat::GetMsg | ( | RtDWORD | dwMsgNum, | |
| IRdNtChatMsg ** | ppRdNtChatMsg | |||
| ) |
Get message with specified index.
| dwMsgNum | [in] Index of the message you want to read. |
for (ind = 0; ind < dwNumMsgs; ind++) { RdNtChatMsg = RdNtChat.GetMsg(ind); bstrLine = RdNtChatMsg.ClientName() + ': ' + RdNtChatMsg.Text() + '\n'; System.Trace(bstrLine); }
RtDWORD * IRdNtChat::MaxNumOfMsgs [get] |
Read maximum number of stored chat messages in this object.
maxMessages = RdNtChat.MaxNumOfMsgs();
RtDWORD IRdNtChat::MaxNumOfMsgs [set] |
Set maximum number of stored messages. The default value is 100.
If new message is added and object already storing the maximum number of messages,
then the last one is removed and all other messages are shifted.
RdNtChat.MaxNumOfMsgs() = 50;
1.5.5