Content of each line and alphabets

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Content of each line and alphabets

Post by shalu » Thu Apr 28, 2016 7:45 am

Hi,

I made a loop which has many lines that contain text. I need the content of each line and that line must have alphabets (a),(b)... corresponding to each line. when line count exceeds 26 then alphabet count should be aa, ab,.... Is it possible

Thanks
Shalu S
--
Thanks
Shalu S

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Content of each line and alphabets

Post by richmond62 » Thu Apr 28, 2016 8:44 am

Here is "something".

Nothing more than a bit of logic!
Attachments
Lister.livecode.zip
Here's the stack.
(921 Bytes) Downloaded 215 times

shalu
Posts: 72
Joined: Fri Mar 20, 2015 1:05 pm

Re: Content of each line and alphabets

Post by shalu » Thu Apr 28, 2016 10:16 am

Thanks for your help :)
--
Thanks
Shalu S

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

Re: Content of each line and alphabets

Post by theotherbassist » Thu Apr 28, 2016 10:34 pm

I don't know how exact you have to be... but

Code: Select all

set the liststyle of line 1 to -1 of fld "[your field]" to "lower latin"
is a built-in function that's very close to what you're after

On that note,
I looked at the liststyle lower latin behaviour in LC7... and it goes through
a
b
c
...
x
y
az
aa
ab

I'm thinking the jump to "az" following "y" is a bug. Obviously this should be "z." Can anyone confirm the same behaviour?

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

Re: Content of each line and alphabets

Post by dunbarx » Fri Apr 29, 2016 6:10 am

Hi.

This behavior occurs forever: for example, after "yyyy" is "azzzz".

Bug or feature?

Craig Newman

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10078
Joined: Fri Feb 19, 2010 10:17 am

Re: Content of each line and alphabets

Post by richmond62 » Fri Apr 29, 2016 11:54 am

This behavior occurs forever: for example, after "yyyy" is "azzzz".
Hence my stack posted above.

theotherbassist
Posts: 115
Joined: Thu Mar 06, 2014 9:29 am

Re: Content of each line and alphabets

Post by theotherbassist » Fri Apr 29, 2016 12:59 pm

Is that for easily marking list depth then?

Post Reply