Thursday, May 10, 2007

Status Baris Data (Powerbuilder)

////////////////////////////////////////////////////////
// Purpose : Cek Status Kolom
//
// Scope :
// Arguments :
// Returns :
//
///////////////////////////////////////////////////////
//*****************Start of Code****************//

dwitemstatus ldw_st
ldw_st = nama_dw.getitemstatus(nama_dw.getrow(),0,Primary!)
if ldw_st = new! then
messagebox("check",'new')
elseif ldw_st = newmodified! then
messagebox("check",'newmodified')
elseif ldw_st = datamodified! then
messagebox("check",'datamodified')
elseif ldw_st = notmodified! then
messagebox("check",'notmodified')
else
messagebox("check",'others')
end if

//*****************End of Code****************//

No comments: