IF ISCLEAR(CC2) THEN CREATE(CC2); IF ISCLEAR(SBA) THEN CREATE(SBA); CC2.AddBusAdapter(SBA, 0); OutMsg := CC2.CreateoutMessage('Sockets://localhost:5006'); OutS := OutMsg.GetStream(); OutS.WRITETEXT('Some Text 1'); OutS.WRITETEXT('Some Text 2'); OutS.WRITETEXT('Some Text 3'); OutS.WRITETEXT(); IF NOT OutMsg.Send(0) THEN ...but the external system doesn't react. So, I wonder if the stream isn't null-terminated and the external system doesn't catch the message.
Comments
Let me know if it works
CU 50000 (single instance) CU 50001 but if... it doesn't work. I don't know how null character would be displayed in NAV, but should I get a message off it?
Are you referring to the MessageReceived procedure, or in general how NAV would handle a NULL terminating string when displaying?
If not and there are other reasons why NAV doesn't display the whole stream, I have no chance to proof if the external system receives an understandable stream. In any case not with two NAV clients.