This function is used to write alphanumeric data in the frame in a specified code (ASCII, ANSI or UNICODE).
Context
Windows client,
Windows server,
Java client,
Java server,
Adelia Web client,
Adelia Cloud client,
Event Adelia client.
Parameters
NUM_BIN_4 |
Socket |
Socket handle. |
ALPHA(n) |
Value |
Value to write. |
NUM_BIN_4 |
Len |
Number of characters to write. |
ALPHA(n) |
Encoding |
Value encoding with conversion to the requested encoding if possible. The supported values are as follows:
If encoding is not specified or is invalid, ANSI encoding is used. |
NUM_BIN_4 |
ReturnCode |
Operation return code: 0 Operation completed successfully Other Specific error code |
Example
... |
|
NUM_BIN_4 |
Socket |
ALPHA(50) |
Data |
NUM_BIN_4 |
Len |
ALPHA(10) |
Enc |
NUM_BIN_4 |
Rc |
... |
|
Data = 'Test data'
Len = &LONGUEUR_CHAINE(Data)
Enc = 'ASCII'
CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockSendAlpha' Socket Data Len Enc Rc
IF Rc = 0
* sending successful
...
List of the VaToolBx functions by topic