How to extract a string value from a mem tag in basic

I have a MEM tag (string) with info on each line, in basic I need to read each line the tag.

tryied

PLCsToCheck$ = PLCs@
Print PLCsToCheck$

prints nothing even thow I have two lines in the tag value:

Hello,

Have you tried utilizing the GETSYS, and SETSYS functions? This will allow to pull the tag infomration from the memory, and assign it to a variable in the script.

Topic closed due to inactivity.