Super noob, Dont know where to start.

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Technochris1
Posts: 2
Joined: Fri Feb 01, 2008 1:50 am

Super noob, Dont know where to start.

Post by Technochris1 » Thu Jul 09, 2009 2:00 pm

Hello all,

I'm attempting to create a program that basically displays and image with a specific set/order of switches when a number is typed into a box. I'm thinking this half would be the easiest. The second part needs to do the opposite of the first half, by being able to click 8 arrows (up or down) and produce the number associated with the order of the arrows....


Here is the first 10 sets of switches out of 128.



Someone please give me guidance, I have no programming history.

[/url]https://sites.google.com/site/technochr ... ects=0[url]

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Fri Jul 10, 2009 8:50 am

Hi Chris,

yep, the first part could easily be done, and here is one easy-peasy solution :)

1. Create all necessary images and name them "image X" where X stands for every
necessary number (1 up to 128 or 0 to 127?).
2. When the number is entered into the field, simply fetch that number, build the
necessary name of the wanted image:
image ("image" && fld "the one with the number")
and show the appropriate image.
3. Done!

Your second question is indeed a TAD more elaborate!
Quick thought:
1. Create four checkboxes
2. Check their states
3. Replace them witht eh necessary numbers
(true = 1, false = 0, if I understand the images on your website correct)
4. Convert this from binary to decimal
5. I might be completely wrong :D


Best

Klaus

Technochris1
Posts: 2
Joined: Fri Feb 01, 2008 1:50 am

Post by Technochris1 » Fri Jul 10, 2009 7:30 pm

Klaus - Thank you for your help.

The sets of switches (and their position) are directly related to a binary format...to bad i don't know what to do with it to make this easy or what not.

well i have all my images ready to go, 001 -128. Should I add them to a new card or package them with this app?

I'm clueless on where to put information such as the code that refers the pictures to a number in a list....everyone makes it sound soo easy to program.. I guess i cant get a hold of the concept to program successfully.

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Sat Jul 11, 2009 5:43 pm

Hi Chris,

I would advise you to check this page and load and examine all the stacks there:
http://www.runrev.com/developers/tutori ... nferences/

There you will find answers on how to start and to a lot of other future questions.


Best

Klaus

Post Reply