Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WizStyle
Message
From
04/09/1998 08:58:47
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00132678
Message ID:
00133201
Views:
21
>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)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform