Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing status of a row/column

Status
Not open for further replies.

lolo327

Programmer
Nov 25, 2003
14
0
0
GB
This is a piece of code :

...
ldwi = dw.GetItemStatus(l_row, s_colname,Primary!)
// ldwi has the value : NotModified!

dw.SetItem(l_row,s_colname,s_value)
dw.AcceptText()

ldwi = dw.GetItemStatus(l_row, s_colname,Primary!)
// ldwi has the value : DataModified!

li_RCode = dw.SetItemStatus(l_row,s_colname,Primary!,NotModified!)

ldwi = dw.GetItemStatus(l_row, s_colname,Primary!)
// ldwi has the value : DataModified!

....

Has anyone an idea why the DWItemStatus is not NotModified! as it should be.

Thanks
 

hi!

something could be executing before your last getitemstatus, 'cause your code seems good.


The life is too short to cry and long enough to try it... God bless us.
[thumbsup2]
 
So you want the entire row to have a NotModified! status?

If so you need to use zero (0) instead of the column name in your code. From the PB books online:

"After data has changed in a column in a particular row, either because the user changed the data or the data was changed programmatically, such as through the SetItem method, the column status for that column changes to DataModified!. Once the status for any column in a retrieved row changes to DataModified!, the row status also changes to DataModified!."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top