Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Textbox validation
Message
 
 
To
04/11/2002 21:45:02
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00718783
Message ID:
00718803
Views:
14
Ransome,

You can perform a physical unbinding at runtime. create a subclass property called cControlSource. In the control init:

this.cControlSource = this.ControlSource
this.ControlSource = ""

In the .Refresh()
this.Value = transform( eval( this.cControlSource ) )

in the .Valid()
lnValue = your K conversion code
replace (this.cControlSource) with lnValue

>However, when I make the controlsource of the textbox to be a numeric field of the table, problem is found that I can not enter ??K format, for "K" is non-numeric;
>
>I add a line at the about valid event to solve:
>
>thisform.anothertextbox.value=this.value;
>
>in which delete the controlsource of the textbox; but make the controlsource of the anothertextbox be the original field I assign for the textbox.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform