Information générale
Catégorie:
Codage, syntaxe et commandes
>>>I am trying to reference two prop in a wiz gen buttonset, specifically editmode and addmode. I am using this to keep the proper val displayed in a drop list box.
>>>I have this in my interactivechange event for the listbox:
>>>IF THISFORM.BUTTONSET1.EDITMODE.VALUE= .F. OR THISFORM.BUTTONSET1.ADDMODE.VALUE = .F.
>>> THIS.REFRESH
>>>ENDIF
>>>
>>>I get unknown member pointing to buttonset1.
>>>My hierarchy is this: FORM1.PAGEFRAME1.PAGE1.BUTTONSET1
>>>I have tried every combination trying to ref this thing but nuthin works...
>>
>>Use "this.refresh()" instead of "this.refresh". You need the brackets even there are no parameters.
>
>If I try it with no conditional statements the 'this.refresh' works. I am having problems with referencing the properties in the buttonset.
Then, try:
IF not THISFORM.BUTTONSET1.EDITMODE.VALUE OR not THISFORM.BUTTONSET1.ADDMODE.VALUE
I am not very sure (and I can't test it now), but I think that "AVariable=.t." (or .f.) is not a valid condition even if AVariable is logic.
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