Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WizStyle
Message
De
04/09/1998 08:58:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Divers
Thread ID:
00132678
Message ID:
00133201
Vues:
19
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform