Le 11/04/2012 05:04, Tracy Pearson a écrit :
> The method lActive_Assign is fired in VFP when the lActive is assigned a new
> value.
Just a detail : I would have write (writen ?) : "is assigned a value". The
'new'
value can be the same as the 'old' one and _assign is fired.
In the _assign method, VFP only deals with the property value; so no refresh,
no ...
Here are an example showing a 'feature' in VFP. Both properties annee_scolaire
and lettre_anne contains the current year. One in numeric format, the other in
caracter mode ("A"=2000, "B"=2001, ....). I f the value of annee_scolaire is
changed, the value of lettre_anne is changed too but there is NO infernal loop
...
PROTECTED PROCEDURE annee_scolaire_ASSIGN
LPARAMETERS pnannee
LOCAL lnannee
This.annee_scolaire = m.pnannee
lnannee = MOD(m.pnannee - m.go_param.annee_de_base, 36)
This.lettre_annee = CHR(IIF(BETWEEN(m.lnannee, 0, 26), 65, 22) +
m.lnannee)
&& 22=48-26
ENDPROC
PROTECTED PROCEDURE lettre_annee_ASSIGN
LPARAMETERS pclettre
This.lettre_annee = m.pclettre
This.annee_scolaire = m.go_param.annee_de_base - ;
IIF(BETWEEN(m.pclettre, "A", "Z"), 65, 22) + ASC(m.pclettre) && 22=48-26
ENDPROC
best regards
The Foxil
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.