Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread edbDatabase1.StartTransaction() needs a parameter?
Thu, Sep 13 2007 3:32 PMPermanent Link

Dave Harrison
When I compile:

edbDatabase1.StartTransaction;

it gives me a compile error "Not enough actual parameters". I thought
the table list was optional as shown in the manual below:

http://www.elevatesoft.com/edb1b2006_executing%20transactions.htm

begin
   with MyDatabase do
      begin
      StartTransaction;
      try
         { Perform some updates to the table(s) in this database }
         Commit;
      except
         Rollback;
      end;
      end;
end;


Dave

EDB v1.05 build 2
BDS 2006
Thu, Sep 13 2007 11:56 PMPermanent Link

"Alan Questell"
You can do this:

StartTransaction(nil);

or

StartTransaction(EmptyEDBStringsArray)

if you put edbtype in your uses clause.



"Dave Harrison" <daveh_18824@spammore.com> wrote in message
news:EDD9583C-EE1F-487E-B457-B37B46DDCD32@news.elevatesoft.com...
> When I compile:
>
> edbDatabase1.StartTransaction;
>
> it gives me a compile error "Not enough actual parameters". I thought the
> table list was optional as shown in the manual below:
>
> http://www.elevatesoft.com/edb1b2006_executing%20transactions.htm
>
> begin
>    with MyDatabase do
>       begin
>       StartTransaction;
>       try
>          { Perform some updates to the table(s) in this database }
>          Commit;
>       except
>          Rollback;
>       end;
>       end;
> end;
>
>
> Dave
>
> EDB v1.05 build 2
> BDS 2006

Fri, Sep 14 2007 1:34 AMPermanent Link

Dave Harrison
Alan Questell wrote:

> You can do this:
>
> StartTransaction(nil);
>
> or
>
> StartTransaction(EmptyEDBStringsArray)
>
> if you put edbtype in your uses clause.
>

Ok, thanks. I guess the documentation needs to be changed then.

Dave


>
> "Dave Harrison" <daveh_18824@spammore.com> wrote in message
> news:EDD9583C-EE1F-487E-B457-B37B46DDCD32@news.elevatesoft.com...
>
>>When I compile:
>>
>>edbDatabase1.StartTransaction;
>>
>>it gives me a compile error "Not enough actual parameters". I thought the
>>table list was optional as shown in the manual below:
>>
>>http://www.elevatesoft.com/edb1b2006_executing%20transactions.htm
>>
>>begin
>>   with MyDatabase do
>>      begin
>>      StartTransaction;
>>      try
>>         { Perform some updates to the table(s) in this database }
>>         Commit;
>>      except
>>         Rollback;
>>      end;
>>      end;
>>end;
>>
>>
>>Dave
>>
>>EDB v1.05 build 2
>>BDS 2006
>
>
>
Fri, Sep 14 2007 2:57 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Dave,

<< it gives me a compile error "Not enough actual parameters". I thought the
table list was optional as shown in the manual below:

http://www.elevatesoft.com/edb1b2006_executing%20transactions.htm >>

It's a documentation error.  I'll make sure that it is corrected.

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Sep 14 2007 3:31 PMPermanent Link

"Jose Eduardo Helminsky"
Tim

Could you add an overload version of StartTransaction without parameters
that pass nil.
Or am I missing something ?

Regards

Eduardo

Fri, Sep 14 2007 3:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Eduardo,

<< Could you add an overload version of StartTransaction without parameters
that pass nil.  Or am I missing something ? >>

The EmptyEDBStringsArray instead of a nil is due to a C++Builder issue with
the generated C++ code.  I originally had it as a nil.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image