Page 1 of 1

put "G" into item 10 of line 1 of fld 1 strange results

Posted: Sun May 01, 2016 6:40 pm
by jmburnod
Hi All,
This case comes from french forum. I don't know if it is documented.

Code: Select all

on mouseUp
   --••Directly in fld 
   answer "Directly in fld way"
   put "A," & cr & "B," into fld 1
   put "G" into item 10 of line 1 of fld 1 -- return 
   wait 3 seconds
   
   --••Using variable
   answer "By one variable"
   put "A," & cr & "B," into fld 1
   put fld 1 into tList
   put "G" into item 10 of line 1 of  tList
   put  tList into fld 1
end mouseUp
Both work with LC 7.01

But I get a different result with LC > 7.01

Directly in fld, line 1 of fld 1 =
A,
B,,,,,,G,,,

Using variable, line 1 of fld 1 (as expected) =
A,,,,,,,,,G
B,

Best regards
Jean-Marc

Re: put "G" into item 10 of line 1 of fld 1 strange results

Posted: Tue May 03, 2016 6:15 pm
by dunbarx
jean-Marc.

For what it is worth, both methods give identical results in 6.7.

Craig Newman

Re: put "G" into item 10 of line 1 of fld 1 strange results

Posted: Tue May 03, 2016 8:41 pm
by jmburnod
Craig,
There is a mistake only with LC > 7.01
Jean-Marc