Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get format string to use for InputMask?
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00982231
Message ID:
00982253
Views:
42
>Nadya
>
>Don't you just want to set the DateFormat prop of your field to whichever you want (i.e. any of the formats + more)? You don't need the inputmask.
>
Do you see, why it doesn't take the InputMask:
IF TYPE('this.ControlSource') = "C" AND TYPE(this.ControlSource) = "T"
   this.Format = "" && we can not use D format, because it doesn't allow to edit time portion
   LOCAL lcInputMask
   lcInputMask = CHRTRAN(TRANSFORM(DATETIME()),"1234567890","9999999999")
   *this.InputMask = ALLTRIM(STRTRAN(STRTRAN(m.lcInputMask,"M","A"),"P","A"))
   this.InputMask = "99/99/9999 99:99:99 AA"
   =MESSAGEBOX(this.InputMask)
ENDIF
It does take it from the property sheet.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform