• 06-01-2010, 14:06:26
    #1
    Alıntı
    Set srs1 = Baglanti.Execute("SELECT SUM(hit) AS toplam FROM veriler where uye='"&session("uid")&"';")
    if srs1.bof or srs1.eof then
    Response.Write ""
    else
    response.Write CInt(srs1("toplam"))
    end if

    aldığım hata

    Alıntı
    Microsoft VBScript çalýþma hatasý hata '800a005e'

    Geçersiz Null kullanýmý: 'CInt'

    /ttt/includes/hesaplama.asp, satır 40
  • 06-01-2010, 14:08:19
    #2
    response.Write srs1("toplam") olarak yazınca sorun yok ama response.Write CInt(srs1("toplam")) olarak yazınca hata veriyor... kafam bi milyon oldu ben hala anlayamadım
  • 06-01-2010, 15:01:30
    #3
    Request.Session olmalı bence
  • 06-01-2010, 15:47:29
    #4
    Üyeliği durduruldu
    srs1("toplam") bu zaten sayısal veri olarak çıkacaktır cint kullanımına gerek yok sanırım
  • 06-01-2010, 16:17:37
    #5
    ShekerChi adlı üyeden alıntı: mesajı görüntüle
    srs1("toplam") bu zaten sayısal veri olarak çıkacaktır cint kullanımına gerek yok sanırım
    güzel bir yaklaşım ama toplama işlemi yaparken;

    Microsoft VBScript çalýþma hatasý hata '800a000d'

    Tür uyumsuz

    hatası veriyor...



    örnek:

    Set srs1 = Baglanti.Execute("SELECT SUM(hit) AS toplam FROM veriler where uye='"&1&"';")
    if srs1.bof or srs1.eof then
    Response.Write ""
    else
    session("mtopla1") = srs1("toplam")
    end if

    Set srs2 = Baglanti.Execute("SELECT SUM(hit) AS toplam FROM veriler where uye='"&2&"';")
    if srs2.bof or srs2.eof then
    Response.Write ""
    else
    session("mtopla2") = srs2("toplam")
    end if

    Response.Write session("mtopla1")+session("mtopla2")
  • 06-01-2010, 16:27:33
    #6
    tabloda sutun değerini Int yerine varChar yaptım çalıştı... ama neden int değerindeyken hata verdiğini halen anlamış değilim...
  • 06-01-2010, 17:07:02
    #7
    Üyeliği durduruldu
    onu bende anlamadım bu asp bozuk yaw hayde asp.nete geçek biz senle
  • 06-01-2010, 17:55:19
    #8
    ShekerChi adlı üyeden alıntı: mesajı görüntüle
    onu bende anlamadım bu asp bozuk yaw hayde asp.nete geçek biz senle
    zamanında almıştım asp.net'e geçeyim diye... ama anlamadım asp.netten sonrada öğrenmek istemedim

    neyse ben biraz dinleyeneyim... tekrar denerim.. iş yerinde ellerim buz tuttu evde ısıtayım
  • 06-01-2010, 18:22:02
    #9
    Üyeliği durduruldu

    kolay gelsin