Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Child Form / Rule Events
Message
De
09/01/2003 15:17:41
 
 
À
09/01/2003 11:47:20
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00739796
Message ID:
00739991
Vues:
15
>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
Fil
Voir

Click here to load this message in the networking platform