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 »

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 »

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: 4219
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn »

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 »

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

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

Post by FourthWorld »

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: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus »

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 »

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