Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Insert vs Overwrite
Message
De
03/07/2002 13:16:38
 
 
À
03/07/2002 13:02:28
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00675011
Message ID:
00675015
Vues:
11
>I think in the old versions of Foxpro we had a parameter of SET INSERT ON or SET INSERT OFF that I think would deal with my situation but I don't think that setting is available in VFP 6.0
>
>I have a basic entry screen where some of the entries are preloaded. I would like the cursor to be in OVERWRITE mode if the operator starts to type into these preloaded fields.
>
>It seems the default is INSERT mode and I can't find a way of turning it off.
>
>If I have to set this as a global paramter for the whole form thats fine but it would be even better if I could set it for just the preloaded fields.
>
>If someone knows how to do this, I would be pleased to hear from you.
>
>Mike Smith

Create a class for your textboxes.
On the when event code like:
IF !empty(This.Value)
=INSMODE(.F.)
Endif
On the lostfocus event
=INSMODE(.T.)
HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform