Ceriwis  

Go Back   Ceriwis > HOBI > Komputer & Teknologi > Programming

Programming Share, tanya jawab, saling bantu antar programmer dengan berbagai macam bahasa pemrograman.

Reply
 
Thread Tools
  #1  
Old 20th November 2011
Darkc0der Darkc0der is offline
Ceriwiser
 
Join Date: Nov 2011
Posts: 598
Rep Power: 14
Darkc0der mempunyai hidup yang Normal
Default [VB] bingung dengan If dan Null

Gan... tolong dong..

nih ane ada masalah.. ketika bikin kondisi IF..yang variablenya bernilai Null.. selalu bernilai False... padahal tuh kondisi terpenuhi...

contoh :

nilai di database

kode nilai

001 null





di VB :

if rs!nilai = null then

rs!nilai = 0

rs.update

else

MsgBox "Nilai sudah nol", vbInformation, "Perhatian"

end if



tapi selalu bernilai false(else)..padahal kan emang bener null..

Agan2 ada yg bisa jelasin ga.. n kasih solusinya gimana??





Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


 


All times are GMT +7. The time now is 11:16 AM.


no new posts