jeu. 17 mars 2011, 09h43
Gregory
atoutfox.public.association
Re: Recherche une Astuce sur un PageFrame
Olivier,
(1) Si tu es d'accord avec 1 champ modifie - mettre exit apres [ llok = .T.]
(2) Si ta page peut contenir des containers - il faut descendre un niveau
Et ce container peut a son tour contenir des containers
(container/pageframe/grid/column, ..)
(3) > and (o_control.Value<>Alias.Champs)
and (o_control.Value <> eval(m.o_control.ControlSource))
Donc, il vaut mieux creer une methode (soit de ton form, soit de ta classe
form)
- que tu appelles evan un parametre qui est l'objet a examiner (premier
appel sera la page)
- qui s'appelle recursivement quand il rencontre un control 'container'
Un bel excercice
______
Gregory
______
"OlivierH" wrote in message news:ilsgb7$281r$1@news.niouzes.net...
Bonjour à tous,
Cela peut m'aider :
llok = .F.
for each o_control in THISFORM.TapageFrame.Tapage.Controls
if PemStatus(o_control, "Value", 5) and (o_control.Value<>Alias.Champs)
llok = .T.
endif
next
Apres pour recuperer cela o_control.Value<>Alias.Champs, je peux le
faire car mon controlesource contient un objet ThisForm.oOBJ.MonChamps
Merci à tous,
Olivier,
Le 17/03/2011 09:17, Nathalie Chacon a écrit :
> llok = .F.
> for each o_control in THISFORM.TapageFrame.Tapage.Controls
> if PemStatus(o_control, "Value", 5) and not Empty(o_control.Value)
> llok = .T.
> endif
> next
>
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000005235