Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number & InputMask in TextBox
Message
From
26/07/2000 12:57:28
 
 
To
26/07/2000 12:41:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00396811
Message ID:
00397141
Views:
10
>How about adding backspace to the class? (you know, the calculator does have backspace capability)
>
>CASE nKeyCode = 127
>* backspace
>NODEFAULT
>lSize = LEN(THIS.cSoFar)
>THIS.cSoFar = substr(THIS.cSoFar,1,lSize-1)

Why not LEFT(this.cSoFar, lSize-1) ?

>THIS.SetValue()
>
>And add nKeyCode 13 (for keypress Enter) in the INLIST() for default behavior?
>
>By the way, you referred this class as txtCalculator but I found this classed as txtNumber (for those who are curious and want to check this class out).
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform