Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First letter of textbox forced to uppercase
Message
From
09/06/2001 14:32:41
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00517385
Message ID:
00517424
Views:
14
>>>How about:
>>>
>>>IF TYPE(This.ControlSource)='C'
>>>    if empty(This.InputMask)
>>>       This.InputMask='!'+REPLICATE('X',LEN(EVALUATE(This.ControlSource))-1)
>>>    endif
>>>ENDIF
>>>
>>
>>This.InputMask contains by default a value in the txtField class. I need to detect if at the form designer level, we have overwritten that value.
>
>if dbgetprop('table_name.fieldname', 'field', 'inputmask') == This.InputMask
>   *** then you have not overwritten the input mask
>else
>   *** the input mask ws changed
>endif
>
We don't have anything at the DBC level. What I meant is that we have a K value for the InputMask of our txtField base class. When we add that txtField class in a form and bound it to a field value, we still have a value of K assigned to it as it comes by default. However, if I change that value at form designer level, I would like to detect that so I can't bypass the condition and have my own input mask. It could be none or something else. I remember there was a function that was returning if we are defaulting or not to the parent class.
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