This might be it (cannot assign string to char), and you have 2 options of which i recommend #1:
1)
sWLAN := memo1.Text[x];
2)
sWLAN := COPY(memo1.Text,x,1)[1];
Neither of these will work if (memo1.Text = ''), so you might need to test that beforehand, unless it'll never be empty.
edit: Second error, you are not initializing x, so:
begin
x:=0;
//sData:=''; // You might put this for consistency, not sure if required.
Repeat
...