If you want to store the command as text, then you'll a command interpretor
in your application. It would read the record, discover that it contains the
command "WinDrawLine", and then actually call WinDrawLine. This is quite
do-able, but would get tedious if you are intending to support the whole
API... :-) Also you would probably store then command in a more easily
parsed format - maybe storing the trap number, followed by the params - this
would let you forget about delimeters because, based on the command, you
would know the size of the parameters following.

If you are looking at the database holding more complex "code" then you
might want to look into shared libraries.


Gavin.

Roberto Sobachi <[EMAIL PROTECTED]> wrote in message
news:98223@palm-dev-forum...
>
> How can I use Databases (*.pdb) to implement a command?
> for example:
>
> How can I read from a database a string that is a command like
"WinDrawLine
> (74, 50, 80, 100);" and execute it in the code?
>
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to