docs

Home Mailslots Overview All functions Categories

vuMailSlotCheckEx(SlotName, dBuffer, BufferSize)

vuMailSlotCheckEx(*CSTRING,*CSTRING,LONG), Signed

Description

Checks a registered mailslot and safely reads the next pending message using an explicit destination buffer size.

Parameters

Parameter Data Type Description
SlotName CSTRING The logical name of the local mailslot to check.
dBuffer CSTRING Destination buffer for the next message.
BufferSize LONG Total size of dBuffer. In Clarion, normally pass SIZE(dBuffer).

Returns

Example

GotMail = vuMailSlotCheckEx(Mailbox, MailBuffer, SIZE(MailBuffer))
IF GotMail > 0
  MESSAGE('You have mail: ' & MailBuffer)
ELSIF GotMail < 0
  ErrNo = vuMailSlotLastError()
  vuMailSlotLastErrorText(ErrText, SIZE(ErrText))
  MESSAGE('Mail slot error ' & ErrNo & ': ' & ErrText)
END

Notes

Home Mailslots Overview All functions Categories