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 »

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] »

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 »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: The hilited line

Post by dunbarx »

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 »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The hilited line

Post by jacque »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: The hilited line

Post by dunbarx »

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] »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: The hilited line

Post by dunbarx »

Hermann.

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

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

Re: The hilited line

Post by jacque »

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: 10501
Joined: Wed May 06, 2009 2:28 pm

Re: The hilited line

Post by dunbarx »

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 »

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: 3582
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: The hilited line

Post by mwieder »

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 »

Translation please.

Does it mean "Vacuum Cleaners sold here"?
Is age an excuse? Eighty-four and counting.
Programming powered by coffee.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The hilited line

Post by Klaus »

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