« Return to Thread: My Story + Small Request

Re: My Story + Small Request

by Berkant Atay :: Rate this Message:

Reply to Author | View in Thread


I just don't have the time now to write down all the code you've wanted to see, but I guess this will help a little..
 
screen.moveto(5,100)
buttonhello=gui.button("Press me!)
 
while true do
ev,id=gui.event()
if ev==appStop then break end
if ev==ctlSelect and id==buttonhello then screen.clear() screen moveto(150,150) print ("Surprise...!!") end
 
end
 

--- On Wed, 6/10/09, jimmy joe jack <wildcard_seven@...> wrote:


From: jimmy joe jack <wildcard_seven@...>
Subject: [plua] My Story + Small Request
To: plua@...
Date: Wednesday, June 10, 2009, 6:08 AM








Okay. So, I'm the father of two kids and I don't have a lot of time to sit on the computer and devote to programming. I do most of what I can, as far as dabbling in programming goes, with my Palm in bed (after the kids go down).

Basically, I have to pick up programming on my palm. It's not the most convenient method for sure, but I think Plua is the right language for it. I've worked previously on Pocket C, and made a little progress with it....but it was somewhat of a nightmare to use on a Palm.

So, I just wanted to know a few things to help me to start digging into the language. I've been trying to dig through texts and stuff but haven't got a clear answer on a few things, so I was wondering if you guys could do a very simple example source code for me. It doesn't have to be the most efficient/clever, better in fact to just be plain and simple.

A program that:

1. Has a graphical button that says "Surprise!" (through
 alert, whatever) when pressed.
2. Creates a database with, say, a few names in it: Mr. Jones, Mr. Smith, and Mr. Grey. Then have it call up those names or do something with them. Whatever.
3. A menu button/drop- down that exits the program.

This should be pretty easy for you Plua badasses, and would help me to get an idea about this simple stuff that I don't feel like digging through the limited (and mostly not so good) instructionals to learn. This small example would be greatly appreciated, and I promise I would leave you alone and work on it for a while before I bring up more stuff.















 « Return to Thread: My Story + Small Request