Trying to sort out why setting a 'file has changed maker' is unpredictable in this app. (VFP7, XP)
The files are standalone DBFs and changes may be made in either single record forms or grids. There are too many fields for simple 'if this val <> oldval()' and I've been using getfldstate and/or getnextmodified
With getfldstate(-1) the problem seems to be that just passing through a field with a Valid sets a 2 in the string, whether the content is changed on not.
(eg code, in Return button of single record form :
needsbak= iif('2 '$ getfldstate(-1),.t.,f.)
With a grid, getnextmodified still returns 0 after records have been changed.
(code in form's Return click is ;
if getnextmodified(0,'rec_cyt',.T.) > 0
needsbak=.t.
What am I missing please - ?
The files are standalone DBFs and changes may be made in either single record forms or grids. There are too many fields for simple 'if this val <> oldval()' and I've been using getfldstate and/or getnextmodified
With getfldstate(-1) the problem seems to be that just passing through a field with a Valid sets a 2 in the string, whether the content is changed on not.
(eg code, in Return button of single record form :
needsbak= iif('2 '$ getfldstate(-1),.t.,f.)
With a grid, getnextmodified still returns 0 after records have been changed.
(code in form's Return click is ;
if getnextmodified(0,'rec_cyt',.T.) > 0
needsbak=.t.
What am I missing please - ?