Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number-style character fields
Message
From
19/02/2008 06:48:20
 
 
To
19/02/2008 06:34:40
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01293663
Message ID:
01293704
Views:
31
I must confess that I was sure that you should get the behavior you want without any workarounds. Are you sure that this is not a SET POINT issue?

>Seems about as complicated as unbinding the control completely <g>. I'll think about it. Thanks.
>
>>Unbind the control in Gotfocus, and bind it back in lostfocus. Something like this, not tested:
>>*GotFocus
>>This.addproperty('cSource',this.controlsource)
>>This.addproperty('cOldValue',this.value)
>>This.controlsource=''
>>This.inputmask='999.99' && Maybe not necessary
>>This.value=val(this.cOldValue)
>>
>>*LostFocus
>>Replace (this.cSource) with str(this.value,6,2)
>>This.controlsource=this.cSource
>>This.inputmask='' && Maybe not necessary
>>Adding the cOldValue property makes it easy to Escape back to the old value in KeyPress
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform