#1 2016-10-06 21:16:04

jars
Member
Registered: 2015-05-15
Posts: 29

How can I define this Record for serialize

Hi, I need dim this strings with this values because I receive an stream from an app server and I use Move to populate this record.

  TCCConfig = packed record
    Version        : string[10];
    DNDReasons : array[1..15] of string[15];
  end;
....

  system.move(lData[CurOff], CCConfig, sizeof(CCConfig));

But I must declare so:

type
  TCCConfig = packed record
    Version        : string;
    DNDReasons : array of string;
  end;

const
  __TCCConfig = 'Version string DNDReasons array of string';

How can I deal with this?
Thanks in advance.

Offline

Board footer

Powered by FluxBB