My apologies, I completely ignored your first question and that was not intentional. Essentially this code is taking the result of two other datasets and compiling them into information visible on the datawindow. Structurally the datasets should be identical, and the data being explored so far between the two is just a few string values to build up some title values.
Also, I tried switching this statement to a .Modify instead, and that doesn't error, but it also doesn't apply the title change.
Not sure if that information is helpful, but I'll continue looking into structural differences between a failing and succeeding dataset to see if I can come up with any other useful information.
Paul
How to fix and keep TAB => Encode the TAB character and be aware of extra level of "tilde art" for every set of quotes.
EXAMPLE: Fixed value = $Hello$ -- and -- Expression = $"How<TAB>Goes"$ (using $ as "meta-quote")
(1) Encode special characters (TAB, CR, LF) to tilde-combos (~t, ~r, ~n)
(2) Prepare expression for outer quotes => Extra level of "tilde art"
(3) Create full expression combining fixed value and expression within a common quote-set.
ls_command = 'welcome_t.Text="Hello~t~"How~~~tGoes~""'
Modify-expressions are tilde-art" ;-)