Search the web
Sign In
New User? Sign Up
cbaspadandhotpawbasic · cbasPad and HotPaw Basic - Discussions about cbasPad and HotPaw Basic
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
How to do "generic" database editing???   Message List  
Reply | Forward Message #2087 of 2112 |
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




Fri May 9, 2008 9:14 pm

sandkboor2003
Offline Offline
Send Email Send Email

Forward
Message #2087 of 2112 |
Expand Messages Author Sort by Date

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...
sandkboor2003
Offline Send Email
May 11, 2008
8:53 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help