>*************************************************************************** >*Method "OrigValueSet" >LPARAMETERS tcCCCN &&cCurrentContainerName (a property on the form) > >LOCAL x, lcCCCn, v, y, z, a, d > >lcCCCN = tcCCCN + "ControlCount" >FOR x = 1 TO &lcCCCN > v = tcCCCN + "Controls[" + allt(str(x)) + "]." > y = v + "Value" > z = v + "BaseClass" > d = v + "OrigValue" > DO CASE > CASE &z = 'Container' && Call this method recursively for subcontainers' controls > a = v + "Name" > This.OrigValueSet(ThisForm.cCurrentContainerName + &a + ".") > CASE TYPE('&y') = "U" && Controls without a .Value (such as labels and shapes) > LOOP > OTHERWISE && Set OrigValue = Value > &d = &y > ENDCASE >ENDFOR >*************************************************************************** >>Have a Good Weekend,