Page 1 of 1
indirect addressing groups
Posted: Sun Mar 05, 2017 7:11 pm
by user#606
I have a picture field and multi line text objects as a group. The groups are distributed over the card as 20 copies.
I have my data and want to populate each or the 20 objects with consecutive data.
The user can select to load another 20 sets and so on.
How should I address each of the 20 groups as I put each record into them.
Re: indirect addressing groups
Posted: Sun Mar 05, 2017 7:49 pm
by Klaus
Hi user#606,
user#606 wrote:I have a picture field and multi line text objects as a group.
to avoid possible misunderstandings: We do NOT have an image field in LC!
We have image objects and field objects!
user#606 wrote:How should I address each of the 20 groups as I put each record into them.
I am really not sure I understand your question!?
Didn't you give all of your groups meaningful names? Like "group1" up to "group20"?
This way you can "loop" through all the groups and "fill" them with data.
Best
Klaus
Re: indirect addressing groups
Posted: Sun Mar 05, 2017 9:41 pm
by SparkOut
Your very best introduction to the structure of a stack and its cards and objects will be among the Scripting Conferences, updated and kindly hosted by jacque.
http://www.hyperactivesw.com/revscriptc ... ences.html
Work through these - it only takes a short while for each one, but will give you a much more succinct understanding of how to address your controls and coding, even if not all of them are directly related to your original question. (There are several that will deal very specifically with the question above.)
Re: indirect addressing groups
Posted: Mon Mar 06, 2017 2:29 am
by dunbarx
What everyone said.
We are here day and night, and will answer all your questions.
All.
But you must learn the fundamentals on your own. We cannot teach that, and you will not be able to benefit from our fabulous help unless you work through this.
So learn how to drive just a little, even though you are gripping the steering wheel with white knuckles. Then your questions, and our answers, will be far more useful to you.
Welcome to LC. Make some silly simple stack, an address book, a calculator, a random number generator, a ransom note writer, anything. You will find such an exercise both thrilling and frustrating. Get going.
Craig Newman
Re: indirect addressing groups
Posted: Thu Mar 09, 2017 2:59 pm
by user#606
Hello to you who replied. Sorry for not getting back immediately.
Thank you for the tips, they will help me with the planning of this project.
It has been years since I used Livecode. I developed several large projects with the help of Klaus and Craig's advice, to name 2.
LC has changed in subtle ways and what was routine, no longer works as expected. It has thrown me a curve ball, to be honest.
I have always received the best and helpful advice from members here an I an most grateful.
Re: indirect addressing groups
Posted: Thu Mar 09, 2017 7:42 pm
by FourthWorld
user#606 wrote:LC has changed in subtle ways and what was routine, no longer works as expected. It has thrown me a curve ball, to be honest.
Ideally LiveCode would remain backwardly compatible. The LC team has done an uncommonly good job of maintaining backward compatibility; the number of language tokens deprecated over the 19 years I've been using it could probably be counted on my fingers. I've seen few other languages do as well with this as LC.
If you're seeing differences, some of those may be changes to behavior necessary for newer systems. Or they may be caused by a bug in the newer version, or by the fixing of bugs that were in the older version. The only way to know which is the case here is to learn more about what you've encountered.
What are you seeing that's different?
Re: indirect addressing groups
Posted: Sat Mar 11, 2017 7:47 am
by user#606
Hi Forthworld.
Well, and I am embarrassed to admit this, it took me ages to realise that when I dragged an object to the card, it just vanished. This went on for an hour, as I read through to find out what had gone wrong. It seems the drop will only be accepted if the card goes green. I had to drag over a central region. In the past, It was just a matter of being on the card. OK, this was just one thing, but there were other changes that needed to be examined and understood.