Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DODEFAULT with parameters
Message
De
31/07/2001 19:58:13
 
 
À
31/07/2001 19:03:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00538014
Message ID:
00538099
Vues:
15
Trey,

>>OK I tried that but no joy. Here is the code currently in the Keypress event
>>
>>
>>LPARAMETERS nKeyCode, nShiftAltCtrl
>>LOCAL lnresult
>>lnresult = DODEFAULT(nKeyCode, nShiftAltCtrl)
>>gcLastName = This.Value
>>REQUERY("ChildList")
>>ThisForm.Refresh()
>>return(.t.)
>>
>
>It's the thisform.Refresh() that's causing the single letter problem.
>If it's just the grid that needs refreshing, just refresh that.
>

I would say it was the absence of NODEFAULT that was the culprit, wouldn't you?


>Not knowing anymore than this, I tried this with in a textbox, grid and view and it worked:
>
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>DoDefault(nKeyCode, nShiftAltCtrl)
>gcLastName = Alltrim(this.value)
>REQUERY("ChildList")
>ThisForm.grdChildlist.Refresh()
>NoDefault
>
>I'm curious why you have a result value and a return value in there? Does KeyPress return anything other than .T.? And where would it return it to?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform