put lines 2 to 5 of fld "Choice" into fld "te

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
ac11ca
Posts: 41
Joined: Sun Mar 16, 2008 2:22 am

put lines 2 to 5 of fld "Choice" into fld "te

Post by ac11ca » Tue Jan 20, 2009 7:39 am

Hay there,

Obviously, my code is not working. Could someone please tell me how to copy a selection of lines of data from one field into another?

Cheers,
Ac

Tim
Posts: 29
Joined: Wed Oct 31, 2007 12:56 pm

Post by Tim » Tue Jan 20, 2009 11:27 am

Use line rather than lines

put line 2 to 5 of field "foo" into field "bar"

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Tue Jan 20, 2009 11:31 am

Hi Ac,

Code: Select all

put line 2 to 3 of field 1 into field 2
works for me. What happened? Did your code compile? If you wrote "put lines 2 to 3 of field ... then it should not compile because of lines instead of line
regards
bernd

ac11ca
Posts: 41
Joined: Sun Mar 16, 2008 2:22 am

Post by ac11ca » Wed Jan 21, 2009 5:18 am

Thanks guys, I was mis-typing "line" as a plural.

Cheers,
Ac

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Post by FourthWorld » Wed Jan 21, 2009 4:45 pm

This raises an interesting question: given that Transcript aims to mirror English whenever practical, and that "lines" in that context is arguably more syntactically correct than "line", should "lines" be allowed when referring to multiples?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Jan 21, 2009 4:56 pm

Hi Richard,

on the other hand is "...lines 2 to 3..." really correct english?

I doubt! Translated into german it is definitvely not! :-)


Best

Klaus

maverickalex
Posts: 108
Joined: Sun Mar 15, 2009 11:51 pm

Post by maverickalex » Tue Mar 17, 2009 10:04 pm

if it was just line 2 and 3 that is gramatically correct in English.
For multiple it would be Lines 2 - 4.

Alex

Post Reply