Livecode internal data storage retrieval possibilities

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

mikemc
Posts: 60
Joined: Sun May 10, 2015 5:42 pm

Re: Livecode internal data storage retrieval possibilities

Post by mikemc » Sat Oct 17, 2015 4:08 am

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

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

Re: Livecode internal data storage retrieval possibilities

Post by jacque » Sat Oct 17, 2015 5:20 pm

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
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

mikemc
Posts: 60
Joined: Sun May 10, 2015 5:42 pm

Re: Livecode internal data storage retrieval possibilities

Post by mikemc » Sun Oct 18, 2015 12:14 am

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

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

Re: Livecode internal data storage retrieval possibilities

Post by dunbarx » Sun Oct 18, 2015 5:51 am

You are very welcome. Jacque, I believe he thanks you as well. :wink:

Craig

Post Reply