Products Downloads


French version


 

 

This function is used to write alphanumeric data in the frame in a specified code (ASCII, ANSI or UNICODE).

 

Context

  • Windows client,

  • Windows server,

  • Mobile client,

  • Mobile server,

  • Java client,

  • Java server,

  • Adelia Web client,

  • Adelia Cloud 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:

  • ASCII: conversion of data to the system's ASCII code page
  • ANSI: conversion of data to the system's ANSI code page
  • UTF-16LE: conversion of data to Unicode, Windows encoding (Little Endian)
  • UTF-16BE: conversion of data to Unicode, network encoding (Big Endian)

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

 

↑ Top of page

  • Aucune étiquette