Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DTOS and CENTURY Question
Message
 
 
To
20/08/2008 15:24:44
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01340482
Message ID:
01340507
Views:
9
Just take 6 last (right) digits from DTOS() without any extra function.

>
>					CASE EligCrit.FormatVal = 'YYYYMMDD'
>						NewFieldValue = DTOS(FieldValue)
>
>					CASE EligCrit.FormatVal = 'YYMMDD'
>						NewFieldValue = RIGHT(DTOS(FieldValue),6)
>
>
>But it seems like I shouldn't need t use the RIGHT on that. Am I missing something with the TRANSFORM, or is this acceptable?
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform