Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute the parent class method, but not a grandparent
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00535248
Message ID:
00535323
Vues:
18
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,

Hi Nadya,

>In a grid AfterRowColChange I have some custom code, when I invoke
>its parent code with dodefault(nColIndex). This grid is based on Highlighted grid, so this code does highlighting. I've just checked our wggrid class and found out, that it has this code:
>
>LPARAMETERS nColIndex
>*--------------------------------------------------------------------------
>* -- NSL 2/29/00 Per request of Nadya
>* -- Added the check for the existance of the hasnavstand property first
>* -- Nadya must be using this grid on a non-WG form.
>*--------------------------------------------------------------------------
>IF pemstatus(thisform,'hasnavstand',5) and thisform.hasnavstand
>	thisform.navstand.navupdate()
>ENDIF
>
>I don't want to execute this code. How can I achieve it?
>
>Thanks in advance.

Because the code will only execute when thisform.hasnavstand=.T., you can use this kludge:
LOCAL llHasNavStand, luResult

llHasNavStand=thisform.hasnavstand
thisform.hasnavstand=.F.
luResult=DODEFAULT()
thisform.hasnavstand=llHasNavStand

RETURN luResult
hth,
Frank Camp
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform