What it does
AddNetworkMessageString writes to a Multiplayer object: it adds rather than reads. It takes iMsgID (an integer) and value (a string), and returns nothing. iMsgID is the id of a Msg object, obtained elsewhere in the Multiplayer family.
Syntax
AddNetworkMessageString(iMsgID integer, value string)Parameters
| Name | Type |
|---|---|
| iMsgID | integer |
| value | string |
Every form returns
nothing
Example · generated
AddNetworkMessageString(1, "value")DO Sync()LOOPAddNetworkMessageString is called with values of the types its signature asks for. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.