Hi all,
Newbie to the world of HotPaw Basic programming and this Yahoo! Group,
so please be kind....
I'm trying to figure out the correct syntax to edit a "generic"
application database on my Tungsten E2; the database is essentially an
initialization file for one of my other Palm applications.
I can read no problem from this database using the db.peek( ) command.
The database is named BibleR+Opt.pdb, and it's TYPE & CreatorID are
both blank when displayed with my file manager FileZ, so it is
definitely not one of the standard databases described in the
documentation.
I've used both of the following HotPaw Basic snippets of code, neither
of which gives me runtime errors (the return values from db.open are
both 0, which says that I have a "valid" database file to work with),
but neither of which overwrites any of the database record entries either.
# Code snippet trial 1, overwriting record #0 @ byte 535 (217Hex)
#
b$ = "BibleR+Opt"
z = db.open b$
s = 40
s$ = chr$(s) # puts 40Hex into s$
db$(z, 0, 535) = s$
# Code snippet trial 2, overwriting record #0 @ byte 535 (217Hex)
#
b$ = "BibleR+Opt"
open b$
s = 40
s$ = chr$(s) # puts 40Hex into s$
db$(b$, 0, 535) = s$
If I try to use the db.edit( ) command, all I get are runtime syntax
error messages. ;-(
Anyway, I can't figure out from the HotPaw Basic documentation what
command and/or syntax I should be using to overwrite my "generic" Palm
OS database. I only need to overwrite a scant 3 bytes in this
database to do what I need to re-initialize my Palm OS application....
Can anyone help me out? Thanks!
Steve B