Products Downloads


French version


 


This function is used to read 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 read.

NUM_BIN_4

Len

Number of characters to read.

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

-2        Timeout

Other   Specific error code


Example

...


NUM_BIN_4

Socket

ALPHA(50)

Data

NUM_BIN_4

Len

ALPHA(10)

Enc

NUM_BIN_4

Rc

...



Len = 50

Enc = 'ASCII'

CALL_DLL 'VATOOLBX.DLL' 'VaToolBxSockRecvAlpha' Socket Data Len Enc Rc

IF Rc = 0

   * reception successful

   ...


List of the VaToolBx functions by topic


↑ Top of page

  • Aucune étiquette