Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format property in Grid
Message
De
04/12/2001 01:33:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00588342
Message ID:
00589084
Vues:
33
>Hi Budianto,
>
>Ok, here is another idea:
>
>Either add a new property to your text class, called OldValue, or use Tag property, which is less convenient.
>
>In GotFocus this.OldValue=this.Value
>In Click
> blank field (this.ControlSource)
>
>In LostFocus:
>if isBlank(this.value)
>   this.value = this.OldValue
>endif
>
>This is of the top of my head and not tested.
>
>I'm also not 100% sure, user would like to have nothing in the field, if it's clicked. What if he/she clicks by mistake and not with the intention of changing?
>
>My first solution just selects everything in the textbox, so user can hit Del button and type anything he/she wants...


Hi Nadya,

>I'm also not 100% sure, user would like to have nothing in the field, if it's clicked. What if he/she clicks by mistake and not with the intention of changing?

Actually, user would like to have nothing with picture format ( ie. , , . )in the field by the time he/she wants to make changing so it's not when it's clicked.

But I've already got the solution, I just put zero by the time the users want to make changing, so the old value is replaced by zero. Anyway, thanks again for your idea.

Budianto
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform