>I am using a page framed multipage form editing data using optomistic row buffering. I am attempting to resolve potential conflicts when other users modify fields durring the current edit session. I want to be able to detect which fields were modified and update the appropriate object on my form. If my object has been edited I wish to inform the user of the potential conflict and allow them to overwrite if they choose. Something like the following.
>
>FOR lnI = 1 TO FCOUNT()
> IF OLDVAL( FIELD(lnI) ) <> CURVAL( FIELD(lnI) )
> Compare to My Forms object using lnI somehow
> IF MyFormsObject has not Changed
> MyFormsObject.Value = CURVAL( FIELD(lnI) )
> ELSE
> Inform user and let them decide
> ENDIF
> ENDIF
>ENDFOR
>
>I need help with the MyFormsObject part of the equasion or an alternate method all together.
>
>Thanks in advance
>Terry
You can use GetFldState() to see which fields in a record have been changed.
Tim Westmoreland
Software Engineer
Skyline Technologies, Inc.
"Upper classes are a nation's past; the middle class is its future." - Ayn Rand, Russian-born author (1905-1982).