: Ok, got it, thanks
: But is there a way to insert some data in those fields like in C?
: struct set_struct {
: const char *stringT;
: const char intX;
: } set_fields[] = {
: { "array zero", 1 }, /* 0 */
: { "array one", 2 }, /* 1 */
: { "\n", 0 }
: };
: this is a so easy way to get data that you just need to read
: you would get them easy like this:
: edit1.text := set_fields[0].stringT;// it would be "array zero"
: I will explain why I need this, maybe it helps you hleping me hehe

: There is an array called COLORS, like this: colors array [0..1] array [0..9] of string;(I am not seeing my project now)
: then I would just need to read its data
: when the server send the number 15 for example
: I would read edit.text := colors[1][5];
: I would like to do that without having to do this:
: Colors[1][0] := 'test1';
: Colors[1][1] := 'test2';
: Colors[1][2] := 'test3';
: Colors[1][3] := 'test4';
: Colors[0][1] := 'test0';
: on my forms oncreat...
:
:
: : You need to use the word "record" for that. Here is a small example:
: :
: : type
: : TAddress = record
: : FamilyName: string;
: : Street: string;
: : Number: integer;
: : TelefoneNumber: double;
: : end;
: :
:
You can make an initialized array like this:
var
Colors: array[0..1, 0..9] of string = (('Test1', 'Test2'), ('Test3', 'Test4'), ('Test5', 'Test6'), etc.
The number of elements must exactly match the number given in the declaration.