« Return to Thread: Newbie Question, I'm Sure, Re/ p...() Commands

Re: Newbie Question, I'm Sure, Re/ p...() Commands

by Berkant Atay :: Rate this Message:

Reply to Author | View in Thread

Hi,
 
Welcome to the wonderful world of Plua.
 
pevent() and other commands starting with a "p" were used in Plua 1.x interpreters. Plua 2.x now uses gui.xxx() format. You will find the pluadoc.html in the zipped plua.zip file you have downloaded recently. And very good information in .pdf, or plucker format can be found in the documents folder of this yahoo group.
 
You're not the first one to jump and start writing plua 1 code under plua 2..!

Hope this helps.

--- On Wed, 6/3/09, seekinganid <e-mail@...> wrote:


From: seekinganid <e-mail@...>
Subject: [plua] Newbie Question, I'm Sure, Re/ p...() Commands
To: plua@...
Date: Wednesday, June 3, 2009, 12:05 AM








I am hoping that this is just a newbie question. I just installed Plua 2.0 onto my Palm T3 running OS 5.2.1. I see references to the use of such commands as pclear() and pevent() in various tutorials and examples, but Plua 2.0 does not seem like them. I receive error messages to the effect of "attempt to call global 'pevent' (a nil value)"; same for pclear.

The following is the example code taken straight from the "First App in 10 Minutes: A Plua Tutorial":

-- FirstApp.lua
pmoveto(70,70)
plabel("My First App works!")
pevent()

Seems pretty simple and straight forward. Is there some additional Plua component that I may be missing? When I reference the built in Plua Help system there is no mention of these p... commands within the Index. I am assuming that these are implemented in version 2.0 due to the usage of such in the various examples I have looked at. Any suggestions?

Thanks.
















[Non-text portions of this message have been removed]

 « Return to Thread: Newbie Question, I'm Sure, Re/ p...() Commands