>What is the check box's control source? Is it based on a field in a table?
The control source is a field in the same table as the ones I'm trying to apply the rule against.
My rule object is dropped directly onto the parent form. I was under the impression that this would work considering this is how it was done in the Pizza example.
Following is the code I wanted to put in the IsEditAllowedRule()
LPARAMETERS cWorkarea, cField
IF m.cWorkarea == "Frames" AND frames.groupshot
IF m.cfield $ 'Pack1,Pack2,Pack3,Pack4,Pack5,Pack6,Pack7,Pack8,Pack9,Pack10,Pack11,Lname,Fname'
this.replace("frames",m.cfield,"")
RETURN .f.
ENDIF
ENDIF
RETURN DODEFAULT(m.cworkarea,m.cfield)
I know there is a way to post formatted code. I just don't know how to do it.
Anyway, all of the other events in the rule class are firing as I would expect them to. Most of the rules fire from changes to data on the child form.
Thanks for your response.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement