Re: Include Database.e
Hello, Serge and welcome. You seem to be the kind of person that like
to jump right in. While that's good in some situations, learning a new
programming language takes a little more time. Take some time to read
the documentation and looking at the example programs before trying to
venture out on your own. Trust me, it will save a lot of headaches in
the long run.
That said, Euphoria is a case-sensitive language. That means that
Include (capital I) is not the same as include (lowercase i). All
built-in statements and routines in Euphoria are lowercase, so that
should be some help. To open a database file, your program should look
like this:
include database.e -- all lowercase
atom err -- db_open() returns an error code. All variables must be
declared before use.
err = db_open("MYDATA.EDB",DB_LOCK_NO)
-- DB_LOCK_NO is allcaps, and is a constant declared in database.e
if err != DB_OK then -- check that it opened
puts(2, "Error opening database.")
end if
---------- End of program
I hope this gets you on your way.
Mike Sabal
>>> lavigne.s at videotron.ca 07/02/03 04:00PM >>>
Hi everyone
I'm new to Euphoria. I'm simply trying to open an eu.edb by running the
following code in the Ed:
Include database.e
i1 = db_open(s, i2) MYDATA.EDB
I get the following error message...Include has not been declared...
Why? Whats wrong
Can any one help before i start chewing my desk?
TIA
Serge Lavigne
TOPICA - Start your own email discussion group. FREE!
|
Not Categorized, Please Help
|
|