Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check fields for changes
Message
De
12/07/2005 12:55:49
 
 
À
12/07/2005 12:06:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01031731
Message ID:
01031766
Vues:
12
Hi Gregory,
Unfortunatly, I do not have my programs in n-tier set up. I just have the vfp base class that does my adding, editing and deleting of records for me. I do my record checks on the form.

Thanks Anyway,
Beth
>hi Beth,
>
>Why not move the logic to the Record Validation rule
>
>- only one place
>- buffering does not matter in triggers and Record Validation rules
>
>you can use a combination of getfldstate(-1) and FieldChanged() below
>
>
>function FieldChanged(FieldName)
>
>	do case
>	case isnull(oldval(m.FieldName)) or Isnull(eval(m.FieldName))
>		return (isnull(oldval(m.FieldName)) <> Isnull(eval(m.FieldName)) )
>	otherwise
>		return (oldval(m.FieldName) <> eval(m.FieldName))
>	endcase
>endfunc
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform