Hello,
I want to copy a string of max. length (ex. from DB2) into the instance DB of the FB (ex.DB10 of FB10).
The string is given to FB10 as an input parameter of type ANY.
In the STAT area of instance DB10 I defined a string of max. length (254 same as length of source string in DB2).
I used BLKMOV (SFC20) and specified data type as byte (B#16#2) when preparing the ANY pointers.
The copy works OK (in VAT I can see that the string was copied into DB10).
In FB10 when I try to get the length (with IEC function FC21 LEN) of the just copied string I get this error (in Diagnostic Buffer):
Thanks!
I want to copy a string of max. length (ex. from DB2) into the instance DB of the FB (ex.DB10 of FB10).
The string is given to FB10 as an input parameter of type ANY.
In the STAT area of instance DB10 I defined a string of max. length (254 same as length of source string in DB2).
I used BLKMOV (SFC20) and specified data type as byte (B#16#2) when preparing the ANY pointers.
The copy works OK (in VAT I can see that the string was copied into DB10).
In FB10 when I try to get the length (with IEC function FC21 LEN) of the just copied string I get this error (in Diagnostic Buffer):
What is the problem?Event 3 of 100: Event ID 16# 2522
Area length error when reading
Own local data, byte access, Access address: 45
FC number: 21
Module address: 28
Thanks!