Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 6 of 6 total |
edbDatabase1.StartTransaction() needs a parameter? |
Thu, Sep 13 2007 3:32 PM | Permanent 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 PM | Permanent 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 AM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 PM | Permanent 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 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. 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 |
This web page was last updated on Saturday, May 4, 2024 at 09:18 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |