Overflow while converting..

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
loxka
Üye
Mesajlar: 214
Kayıt: 18 Ağu 2003 01:10

Overflow while converting..

Mesaj gönderen loxka »

Devexpress'in CxDBDateEdit komponentini tarih tanımlamak için kullanmak istediğimde ;
Overflow while converting variant of type (Integer) into type (Date)
hatası alıyorum.
Tarih Alanı Date olarak tanımlı neden bu hatayı veriyor?
Yardımlarınız için teşekkür ederim
ikut

Re: Overflow while converting..

Mesaj gönderen ikut »

loxka yazdı:Devexpress'in CxDBDateEdit komponentini tarih tanımlamak için kullanmak istediğimde ;
Overflow while converting variant of type (Integer) into type (Date)
hatası alıyorum.
Tarih Alanı Date olarak tanımlı neden bu hatayı veriyor?
Yardımlarınız için teşekkür ederim
Öneri sadece ;

1. Tarihlerin display formatı her ikisindede gün ay yıl mı yada uygunmu
2. Tablo componenti içinde alanın tipi yanlış tanımlanmış olabilirmi.
3. Date edit componenti yanlış fielde bağlanmış olabilirmi (kuvvetle muhtemel)
loxka
Üye
Mesajlar: 214
Kayıt: 18 Ağu 2003 01:10

Mesaj gönderen loxka »

Çözümü bir rus sitesinin forum alanında buldum arkadaşlar, belki aynı sıkıntıyı yaşayan arkadaşlar olursa diye çözümü vereyim..
\\Devexpress\ExpressEditors Library 5\Sources klasörünün içindeki cxDateUtils deki NullDate = -700000; ifadesini NullDate = -2; olarak değiştirin ve complate edin..

Sitedeki Orjinal metin :

Kod: Tümünü seç

Every control that handles date gave me this message "Overflow while  
converting variant of type (Integer) into type (Date)" even though I've  
changed three versions of QuantumGridSuites 5.8, 5.9 and finally 5.11.  
How come you couldn't fix this famous problem from version 5.8 to  
version 5.11. 


"De library has a constant for a NULL value date (this is the problem). 
Search in all units of developer express for the line: 
NullDate = -700000; 
Change this in: 
NullDate = -2; 
Cevapla