>Can anyone suggest how to subclass Wizstyle and modify it to allow carring forward info from previous record in a form when useing the txtbtns.vcx part of Wizstyle?
>I have tried numerous things, but nothing work correctly, even Set Carry On ( of course, I may not be adding it in the right area).
>
>TIA,
>Dan
All my control classes have an .OldValue property and AutoDup property (a logical one). Now in the NewRec method of my form (class) I have this:
for i=1 to this.controlcount
this.controls[i].oldvalue=this.controls[i].value
endif
append blank
for i=1 to this.controlcount
if this.controls[i].AutoDup
this.controls[i].value=this.controls[i].OldValue
endif
Of course, this takes some more filtering, because you'd do this only for those controls which do have a value (not shapes, containers etc)