EDB Question
- Posted by Rich Klender <rklender at excite.com> Feb 02, 2007
- 522 views
I'm starting to code writing some data to my Database and I have a couple of generic questions on the EDB commands: 1.) What exactly is returned when you do a db_create or db_open, at various points it states that DB_OK is returned or 0 is returned. Is DB_OK a variable that equals 0? Just wondering for my own education. 2.) If my database file exists or has to be created, I'm assuming we have to give the file path. So: db_create("c:\\somedir\\somesubdir\\myfile.edb") Is this correct? 3.) Now, after creating/opening the EDB, we have to select it. Do we need to give the total pathname, or can we just give the file name, and do we need the .edb extension? i.e. db_select("c:\\somedir\\somesubdir\\myfile.edb") or is it: db_select("myfile") I'm sorry if this has been gone over before...if it has, just point me to where and I'll stop bothering you guys!!! But the manual is rather vague... Thanks! Rich