Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reverse Deletion
Message
 
À
14/01/2005 09:30:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00977184
Message ID:
00977185
Vues:
33
>Dear Experts
>
>Numeric type Text1 has following data
>
>123456
>
>I want some codes on command1 to delete this data step-by-step in reverse order as
>
>When I press command1, first time, it should delete 6 and when I press command1, second time, it must delete 5 and so on.
>
>Second time does not mean double click.
>
>Please help

In Click Event:
c_str = TRANSFORM(thisform.text1.Value)
IF LEN(c_str) < 2
   thisform.text1.Value = 0
ELSE
   thisform.Text1.Value = VAL(LEFT(c_str, LEN(c_str)-1)))
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform