A problem with XDATA variable ...
Posted: 08 Dec 2016 10:15
Hello community, I have a problem with XDATA variable ...
I hope you can help me.
An example:
Test;
Var s1: string [5]; Xdata;
S2: string [5];
L1, l2: word;
Begin
S1: = '1234';
S2: = 1234 ';
L1: = strlen (s1); // res = 0
L2: = strlen (s2); // res = 4
end.
// 8951mlk File:
<XDATA> Min 0x0000, Max 0x3fff
Why are the results not the same?
I hope you can help me.
An example:
Test;
Var s1: string [5]; Xdata;
S2: string [5];
L1, l2: word;
Begin
S1: = '1234';
S2: = 1234 ';
L1: = strlen (s1); // res = 0
L2: = strlen (s2); // res = 4
end.
// 8951mlk File:
<XDATA> Min 0x0000, Max 0x3fff
Why are the results not the same?