On Aug 14, 2011, at 8:51 AM, Mark Schonewille wrote:

> Thomas,
> 
> Try this:
> 
> put "blabla" after line (word 2 of the L_Line of field 1) of field 1
> 
> --
> Best regards,
> 
> Mark Schonewille
> 
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
> 
> What does that error mean? Buy LiveCodeErrors for iPhone now 
> http://qery.us/v4 A must-have for LiveCode programmers.
> 
> On 14 aug 2011, at 14:28, Thomas Bähler wrote:
> 
>> Hi all
>> Grrr, I did that before but can't find the solution anymore.
>> 
>> I have a textfield with several lines. When I click that field, I store the 
>> reference of the selectedLine in a custom variable. Later I want to put text 
>> after that specific line. But I don't get there.
>> 
>> I click in line 1 of field 1 and store the selectedLine in the custom 
>> property  the L_Line of field 1
>> when I try: put the L_Line of field 1     I get:  "line 1 of field 1"
>> when I try: put the value(the L_Line of field 1)      I get the content of 
>> that line
>> when I try: put "blablabla" after (the L_Line of field 1)      I get a 
>> compilation error (Chunk: bad destination)
>> 
>> Thanks for help!
>> 
>> Thomas

Another way of doing it: store just the line number. "The L_Line of field 1" is 
already specific to field 1, so it doesn't have to contain "line 1 of field 1" 
-- it could just contain "1". Then
   line (the L_Line of field 1) of field 1
gives you the content of the line.

-- Peter

Peter M. Brigham
pmb...@gmail.com
http://home.comcast.net/~pmbrig



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to