Page 2 of 2

Re: Livecode internal data storage retrieval possibilities

Posted: Sat Oct 17, 2015 4:08 am
by mikemc
Hi Craig
I tried it out and it works good. This could work if I put a version of the handler in a previous and next button.
I get the idea with two fields or two groups would it be to much to ask to show me how a version of the handler would
handle three fields or groups after that I think I can fill in the blanks and start recreating my App.
Thanks

Re: Livecode internal data storage retrieval possibilities

Posted: Sat Oct 17, 2015 5:20 pm
by jacque
The most common way to do it is to just hide all the groups in a repeat loop and then show the one you want. That eliminates the need to keep track of individual groups.

Code: Select all

on showGrp pNum
  repeat with x = 1 to 6
    hide grp x
  end repeat 
  show grp pNum
end showGrp

Re: Livecode internal data storage retrieval possibilities

Posted: Sun Oct 18, 2015 12:14 am
by mikemc
Hi Craig

The handler works fine now thanks
I also discovered buy using a next and previous button and the right combination of the show/hide commands
I can move from group to group just like flipping through cards :D . Its a small thing with big power for my app.
Now I am going to change my original 6 cards into 6 groups on one card. I can't wait to set it up as a simple database
that will be up dated in real time. Thanks to all for the help

Re: Livecode internal data storage retrieval possibilities

Posted: Sun Oct 18, 2015 5:51 am
by dunbarx
You are very welcome. Jacque, I believe he thanks you as well. :wink:

Craig