I belive there are some design issues you might want to look at.
Keep in mind that memory on the Palm is like gold dust...
> Here are the program specs:
> 1) I have an array of structs. Each struct is displayed and
> edited in a
> form. So, if there are 40 in the array, there are 40 forms,
> respectively.
Don't have 40 'seperate' forms, the sive of your program would be huge, and
maintaince would be a nightmare. It would be better to have one generic
form, and load the data in and out of it, when needed.
> Each form will display the values of teh fields in each
> variable of teh
> struct on the form in the respective places. These values
> will also be
> editable.
> 2) On each form, there is an option to go to the next form,
> which contains
> similar data but is a different "set". There is also an
> option to go to the
> previous form.
Have one form for each 'type' of data, for exammple in a stock db app, you
might have one form for customer data, stock data, and supplier data. You
would not have one form for every customer, supplier, and stock item
> Here are my questions:
> I have the forms and the structs, but know not as how to
> actually use them.
Use the strcut to create an array, or linked list.
> How do I load a form, and, how do I output the respective
> variable values
> for each form? How do I keep the fields editable with the
> certain value,
> and, how do I input the value?
You would use an edit control for this.
> How do I jump forms, like "next" or "previous"?
>
> Each form, mind you, will be saved and can be accessed any
> time upon opening
> of the program. They just jump to the "set" and the values are there.
IMO the best soultion for this is to use a database. Each of the different
type data could be stored in a sepearte database on the Palm. The Database
Manager would also handle moving, writing, and reading the records.
Therefore you would only need one instance of the struct to represent the
current record. Thus reducing the amount of memory your application uses.
The reference and companion PDF documents are great source of the API calls
and what data they execpt. Whcih is really useful when someone says "uses
the DMOpenDatabaseByCreator call"
If you are just starting out, probably the best source of information on how
a Palm application is structed what the messgage processeing fucntions do
and how they are called by the OS, and how forms are opened and shown; is to
go and spend $20 on a book. There are several out there, they one that I
have is called Palm Programming the developer's Guide (ISBN 1-56592-525-4).
It is pretty basic, covers the strcuture of the apps, forms, controls,
databases, lists, serial coms, and basics of conduits.
I hope this helps.
Logie Urquhart
---------------------------
Software Engineer
Linx Printing Technoloiges
www.linx.co.uk
[EMAIL PROTECTED]
---------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/