docs

Home Mailslots Overview All functions Categories

vuMailSlotCheck(SlotName, dBuffer)

vuMailSlotCheck(*CSTRING,*CSTRING), Signed

Description

Checks a registered mailslot and reads the next pending message into the caller-provided buffer.

Parameters

Parameter Data Type Description
SlotName CSTRING The logical name of the local mailslot to check.
dBuffer CSTRING Destination buffer for the next message. This legacy function does not know the actual capacity of the caller buffer.

Returns

Example

GotMail = vuMailSlotCheck(Mailbox, MailBuffer)
IF GotMail > 0
  MESSAGE('You have mail: ' & MailBuffer)
ELSIF GotMail < 0
  MESSAGE('Unable to check the mail slot.')
END

Notes

Home Mailslots Overview All functions Categories