Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 17th, 2013, 05:25 AM
nightrider43 nightrider43 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2012
Location: São Paulo - Brazil
Posts: 34 nightrider43 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 50 m 57 sec
Reputation Power: 1
Send a message via ICQ to nightrider43 Send a message via MSN to nightrider43 Send a message via Google Talk to nightrider43 Send a message via Skype to nightrider43
Error in TDBEdit in Delphi XE?

I'm migrating an application from Delphi 7 do Delphi XE.

One of the screens use TDBEdit dialogs, TClientDataSet, TDataSetProvider and TADOQuery for include, alter and exclude records.

As soon as I run the first time the new version compiled with Delphi XE it occurs the error:

'-2147217873 is not a valid value for field ''ERROR_CODE''. The allowed range is 0 to 4294967295'

on the ApplyUpdates(0) statement.

I remove ApplyUpdates and get it back. In some moment the error mentioned disappears. Sometime later it occurs again and then disappears again.

I'm in doubt about what do I must do... While testing without the ApplyUpdates I discover that the function to alter a record doesn't function OK without the ApplyUpdates, e.g., the oracle based SQL table isn't updated. The execution flow passes in Edit and in a Post delphi methods, but without ApplyUpdates the database isn't updated.

May someone of you give me a suggestion about what do I must do in this case? I'm thinking if I leave the ApplyUpdates method the error mentioned below begins again in a moment in the future. Also there are many other functions of the application that use the same mechanism to include, alter and exclude records from other tables...

Greetings from Sao Paulo - Brazil

Ricardo

Reply With Quote
  #2  
Old January 18th, 2013, 12:52 AM
Luthfi Luthfi is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2012
Posts: 141 Luthfi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 5 h 1 m 56 sec
Reputation Power: 2
The error actually did not happen in TDBEdit. That happened in the underlying field. To me it looks like that your field initially typed as signed integer ("ordinary" int), but later converted to unsigned integer (like cardinal or DWORD). See if you can change the field's type back to signed integer.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Error in TDBEdit in Delphi XE?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap