Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get format string to use for InputMask?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00982231
Message ID:
00982301
Vues:
66
It can and it does. Just look closer and think about it a little bit.

>How can this ever be true?
>IF TYPE('this.ControlSource') = "C" AND TYPE(this.ControlSource) = "T"
>
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform