Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate characters with nodefault / dodefault()
Message
De
19/09/2008 09:55:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01348911
Message ID:
01348916
Vues:
13
>tab and shift-tab toggle product and description in the same space correctly.
>In the description field I get duplicate characters.
>I get for "cat" - ccaatt, if I take out the dodefault() I get nothing - what am I forgetting?
>=================================
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>
>IF nKeyCode = 27 && Escape Key causes problem in control source of grid.
>      NODEFAULT
>ENDIF
>
>DO CASE
>      CASE nKeyCode = 9
>            This.Parent.Width = 0
>            This.Parent.Parent.grcProduct.Width = 244
>
>      CASE nKeyCode = 15
>            This.Parent.Width = 0
>            This.Parent.Parent.grcDiscription.Width = 244
>
>ENDCASE
>
>DODEFAULT(nKeyCode, nShiftAltCtrl)
>
>
>
>tia

VFP built-in event code runs after your code regardless you have code in the event procedure (provided you don't prevent with NODEFAULT.

Your code looks like:

DoDefault behavior with letter 'c'
Run built-in behavior with letter 'c'

causing the double. Remove DOdefault() IOW.

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform