The hilited line

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

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

The hilited line

Post by RossG » Sun Dec 11, 2016 10:20 pm

I have three scrolling fields.

When I click on a line in field 1 then on
a line in field 2 the line in field 1 remains
hilited which seems to cause some confusion
in the code to put the hilited line into another
field.

The Dictionary says that the hilitedLine is a
comma-delimited list of numbers so I've tried
some code to put "" or "empty" into it to
turn off the hilite of field 1 but so far no
acceptable solution.

Suggestions welcome.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: The hilited line

Post by [-hh] » Sun Dec 11, 2016 11:17 pm

It's a property, so this should work:

Code: Select all

set hilitedLines of fld 1 to empty
shiftLock happens

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: The hilited line

Post by RossG » Mon Dec 12, 2016 12:59 am

Thanks hh. That works.
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

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

Re: The hilited line

Post by dunbarx » Mon Dec 12, 2016 1:38 am

What Hermann said.

But he also said something else, perhaps a little too offhandedly.

You tried to use the "hilitedLine " as a container when you tried to put empty into it. Rather, It is a property, and you must "set" it to empty..

Craig Newman

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: The hilited line

Post by RossG » Mon Dec 12, 2016 2:44 am

Yes, and to compound my error I used
"hilitedLine" rather that "hilitedLines"!
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The hilited line

Post by jacque » Mon Dec 12, 2016 5:51 pm

Since the hilitedline is one or more integers, it is typical to set it to zero, though empty works.

"Hilitedline" and "hilitedlines" can be used interchangeably, BTW, so no error Hermann.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: The hilited line

Post by dunbarx » Mon Dec 12, 2016 6:43 pm

Jacque.

Herman does not make errors. Nor did Ross, as you said.. I do.

Craig

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: The hilited line

Post by [-hh] » Mon Dec 12, 2016 8:20 pm

Craig wrote:Herman does not make errors. Nor did Ross, as you said.. I do.
Yes, my highly regarded teacher. But the only error I know is the missing last "n" in "Herman" :-)
shiftLock happens

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

Re: The hilited line

Post by dunbarx » Mon Dec 12, 2016 8:36 pm

Hermann.

See? I told you. I am error prone. :oops:

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The hilited line

Post by jacque » Mon Dec 12, 2016 9:56 pm

The thing about German is that if a word isn't long enough, they just add more letters or whole words. The thing about American English is that they subtract letters and words. :D
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: The hilited line

Post by dunbarx » Mon Dec 12, 2016 11:13 pm

We could not play Scrabble at all if it were not so.

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: The hilited line

Post by RossG » Mon Dec 12, 2016 11:42 pm

One word of German that stuck in my mind
from an attempt to learn another language
was "strassenbarnhaltensteller" (the spelling
is just from memory and is no doubt wrong)
but it means "tram stop".
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: The hilited line

Post by mwieder » Wed Dec 14, 2016 8:39 pm

funny-sign-Germany-long-store-Scrabble1.jpg

RossG
Posts: 247
Joined: Thu Jan 08, 2015 7:38 am

Re: The hilited line

Post by RossG » Wed Dec 14, 2016 9:36 pm

Translation please.

Does it mean "Vacuum Cleaners sold here"?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.

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

Re: The hilited line

Post by Klaus » Thu Dec 15, 2016 12:13 am

RossG wrote:Does it mean "Vacuum Cleaners sold here"?
No! :D

Post Reply