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

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

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

Post by jmburnod » Sun May 01, 2016 6:40 pm

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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10324
Joined: Wed May 06, 2009 2:28 pm

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

Post by dunbarx » Tue May 03, 2016 6:15 pm

jean-Marc.

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

Craig Newman

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

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

Post by jmburnod » Tue May 03, 2016 8:41 pm

Craig,
There is a mistake only with LC > 7.01
Jean-Marc
https://alternatic.ch

Post Reply