Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First letter of textbox forced to uppercase
Message
From
09/06/2001 13:23:51
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517385
Message ID:
00517407
Views:
18
>>>>I have something weird. In my txtField class, I have K for the Format and empty for the InputMask. When doing the data entry, I found that that particular field was forced to have the first letter uppercase. I adjusted it to have empty in the Format. I still have the first letter uppercase. Where is that coming from?
>>>
>>>Do you field validation code in the table structure? [e.g., modify structure of the table and check for validation code] Any code anywhere in the parent classes?
>>
>>Both fields in the structure doesn't contain anything.
>>
>>txtField is abound on the VFP baseclass.
>
>Sounds like you have a rogue PROPER() function getting called somewhere.

Ok, I have found it.

There is a condition in the txtField class Init():
IF TYPE(This.ControlSource)='C'
   This.InputMask='!'+REPLICATE('X',LEN(EVALUATE(This.ControlSource))-1)
ENDIF
What would be the best approach to update this condition to take care of not executing this code if I have overwrited the value of the InputMask?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform