Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get format string to use for InputMask?
Message
 
 
À
31/01/2005 10:15:49
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:
00982253
Vues:
39
>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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform