Search found 3 matches

by mrmopo
Thu Feb 29, 2024 8:01 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 4751

Re: How to change order of fields in a group?


...
put the num of flds of grp "MainGroup" into num_fields
repeat with i = num_fields down to 1
put empty into fld i of grp "MainGroup"
set the backgroundColor of fld i of grp "MainGroupp" to ##b5b565"
...

I thought about this but I was trying to avoid it because I have other parts later on ...
by mrmopo
Thu Feb 29, 2024 7:28 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 4751

Re: How to change order of fields in a group?

stam wrote: Thu Feb 29, 2024 6:25 pm Can I check with @mrmopo - the 30 fields in a matrix... are you sure this shouldn't be a tableField or datagrid?
no, but i probably should of used a tableField now that you mention it lol
by mrmopo
Thu Feb 29, 2024 5:15 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How to change order of fields in a group?
Replies: 13
Views: 4751

How to change order of fields in a group?

Ive got a group of 30 fields set up like this
x x x x x
x x x x x
x x x x x
x x x x x
x x x x x
x x x x x

They are labelled 1 to 30 and a lot have some unique code so I’d rather not remake them all, but when I iterate through them via the group it goes backwards starts bottom left and goes to top ...