Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Numeric field for year - detect 00 or no value entered?
Message
De
11/06/2004 12:43:13
 
 
À
11/06/2004 09:55:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00912459
Message ID:
00912784
Vues:
11
Yes, but I still needed Sergey's resolution to determine if the user entered 00 or if he/she just stepped through the textbox without entering any value because 00 will convert to 2000 and no value equates to 0 in a numeric textbox and I needed it to return the current year.


>Tracy, you cannot use the VFP behaviour for do this ?
>
>
>SET CENTURY  TO 19
>SET CENTURY ON
>value = '04'
>? YEAR(CTOD('1/1/'+m.value))
>value = '2004'
>? YEAR(CTOD('1/1/'+m.value))
>
>
>Fabio
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform