Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reverse Deletion
Message
 
To
14/01/2005 09:30:53
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00977184
Message ID:
00977185
Views:
32
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform