Hi all,
I'm trying to assign the individual characters from a STRING data type to an array of BYTE's as below:
text : STRING(5) := 'hello';
char : ARRAY[0..4] OF BYTE;
Does anyone know how to get this to work? I thought this below would work but it doesn't:
char[0] := text[0];
char[1] := text[1];
char[2] := text[2];
char[3] := text[3];
char[4] := text[4];
I'm trying to assign the individual characters from a STRING data type to an array of BYTE's as below:
text : STRING(5) := 'hello';
char : ARRAY[0..4] OF BYTE;
Does anyone know how to get this to work? I thought this below would work but it doesn't:
char[0] := text[0];
char[1] := text[1];
char[2] := text[2];
char[3] := text[3];
char[4] := text[4];
Last edited: