docs

Home Mailslots Overview All functions Categories

vuMailSlotSend(SlotName, Data, Length, Local)

vuMailSlotSend(*CSTRING,*CSTRING,LONG,LONG), Signed

Description

Sends data to a named mailslot in another application.

Parameters

Parameter Data Type Description
SlotName CSTRING The logical name of the target mailslot.
Data CSTRING The data to send. A Clarion group or queue can also be copied into a compatible buffer before sending.
Length LONG The number of bytes to write.
Local LONG 1 sends to a mailslot on the same PC. 0 uses the legacy remote/domain mailslot form.

Returns

Example

SlotName = 'Transactions'
Data     = 'Any Data I Want'
Length   = LEN(Data)
Local    = 1

IF vuMailSlotSend(SlotName, Data, Length, Local)
  MESSAGE('Data sent successfully.')
ELSE
  MESSAGE('Failed to send data.')
END

Notes

Home Mailslots Overview All functions Categories