Swelio 1.6 released

Swelio 1.6 is available for download.
This release includes bugs fixing based on the users feedback.
Thanks to Tom Pester and Tim Messiaen for useful comments.


  1. Hello,

    I find your Swelio library wonderful,

    But I have a small problem and I hope you can help me,

    When I read the data of the "Document type field" I find a long number, example : 1677785

    But how can I split that to check if this long number equal to my choice ? :

    1:Belgian citizen
    6:kids card (< 12 year)
    7:bootstrap card
    8:“habilitation/machtigings” card
    11: card A
    12: card B
    . . .

    THank you.

    1. From your message is not clear what version of the library and ehat programming language do you use. As a first step, I would suggest to download the latest version of Swelio from github.

    2. Hello,

      Thank you for your answer,
      I'm using Windev programming language,
      and I'm using your lastest version swelio-sdk (I think 1.7)
      I downloaded it from https://github.com/perevoznyk/swelio-sdk
      I downloaded the lastest version Commited on Feb 6, 2018 (6 days ago).

      I can retrieve most data from eID card without problem :
      First/Last name, Picture, Birthdate, Address, Nationality, ...etc.
      But I can't retrieve "DocumentType" field, into this field I found 1677785 instead of :
      1 (for Belgian citizen) OR 6 (for kids card) OR 7 (for bootstrap card), ...etc.

      Any idea please ?

      Thank you :)

  2. It appears that you are running into endianness differences between Swelio and WinDev. Endianness determines the order that bytes are read by the cpu. For example, if you have the number 1, it can be stored as a 32-bit integer (4 bytes) as either 0x 00 00 00 01 (big endian) or 0x 01 00 00 00 (little endian). This explains why you get 16777216 for the value 1, as 0x01000000 == 16777216.

    1. Exactly,

      It was Endianness problem, so :

      I converted to hexa : IntToHexa(Data.nDocumentType,2) // ex : 16777216 => 01000000
      Than, I extracted numeric value from by using val() function :
      Trace(Val(sHexa)) // 01000000 => 1 // eID Belgian citizen.

      Thank you so much :)


Post a Comment

Popular posts from this blog

Quricol - QR code generator library

Quricol 2.0 - QR Code generator

Diswy - freeware application to show or hide desktop icons