RE: Include Database.e
Thanks Brian. Your help is appreciated. I did read the doc but there is
so much material. I'm an older guy (63) and memory is not what it used
to be ;) I'm particularly interested in databases. What do you think of
the Tsunami engine being accessible from Euphoria now?
Brian Broker wrote:
>
>
> Hi Serge,
>
> Welcome to Euphoria! May I suggest the obvious first step when working
> with anything unfamiliar... Read The Manual!
>
> Here's what's wrong with your program...
>
> 1. Euphoria is case sensitive. "include" (all lowercase) is a special
> top-level statement. "Include" (with capital 'I') is interpreted as an
> undeclared object or constant and this explains your error message.
>
> 2. Once you fix that, you'll get a similar error about i1 not being
> declared. In Euphoria, all variables must be declared before
> assignment.
>
> 3. Read the documentation on the Euphoria Database System for proper
> usage of the function db_open().
>
> Here is a simple example of what you might be attempting to do:
> -----------------------------
> include database.e
>
> integer i1
>
> i1 = db_open("MYDATA.EDB",DB_LOCK_EXCLUSIVE)
> -----------------------------
>
> Once you've read the docs and understand the basics of programming in
> Euphoria please to come back with further questions. Everybody here is
> always happy to help.
>
> Regards,
> -- Brian
>
>
> jondolar wrote:
> >
> >
> > 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
> >
>
|
Not Categorized, Please Help
|
|