GET NET MESSAGE This command gets the oldest message from the incoming message queue and makes it the current message.
Syntax
    GET NET MESSAGE
Returns
This command does not return a value.
Description
Any messages that are sent to this application are stored on a queue and you are able to take each message and process it. You can use the NET MESSAGE EXISTS() command to determine when there are no more messages in the queue.
Example Code
    while inkey$()<>"x"

    cls

    print "HANDLE NET MESSAGES (Press X To Continue)"

    print "TO: ";ReturnTo

    print "FROM: ";ReturnFrom

    print "INTEGER: ";ReturnInteger

    print "FLOAT: ";ReturnFloat#

    print "STRING: ";ReturnString$

    if mouseclick()=1

    print "SENDING..."

    send net message integer 0,mousex()

    send net message float 0,mousey()*1.0

    send net message string 0,"hello world"

    endif

    get net message

    if net message exists()=1 then print "RECEIVING..."

    while net message exists()=1

    ReturnTo=net message player to()

    ReturnFrom=net message player from()

    if net message type()=1 then ReturnInteger=net message integer()

    if net message type()=2 then ReturnFloat#=net message float()

    if net message type()=3 then ReturnString$=net message string$()

    get net message

    endwhile

    endwhile
See also
MULTIPLAYER Commands Menu Index