Dennis Koerner <[EMAIL PROTECTED]> wrote:
> i've got a problem with my first prog. it has to jump from one form to
> another and then enter a text in a text field. i have tried everything but
> it doesnt work.

Switching from one form to another is a kinda fundamental thing in Palm 
programming. Have you seen the "Palm Programming - The Developer's 
Guide" book that is online at the Palm Developer Zone? It explains the 
use of FrmGotoForm and FrmPopupForm. If you want text to appear in a 
field as soon as the form opens, you have to do that in the form's 
event handler, in the frmOpenEvent case.

> also i need to know how to write a res name so it is used as a pointer or
> how to get a pointer

All resources have a numeric ID, that you assign. You've probably given 
that number a name (sorry, I'm not familiar with the way this is done 
with CodeWarrior). To get a pointer to a resource that is on a form, 
first you need a pointer to the form. If the resource is on the form 
that happens to be active, and the resource happens to be a field:

FormPtr form;
FieldPtr fld;

form = FrmGetActiveForm();
fld = FrmGetObjectPtr(form, FrmGetObjectIndex(form, RESID));

--
Roger Chaplin
<[EMAIL PROTECTED]>

Reply via email to