Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calendar Class Jeff Baker?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00269780
Message ID:
00270342
Vues:
27
Steve,

You said you had a date type already. The code you posted is somewhat cryptic. If you have a string that you are trying to force into datetime use the new datetime constant type with ^ to make it work better:

ltX = eval( '{^' + lcYear + '-' + lcMonth + '-' + lcDay + ',::}'

You can also use {//,::} as an emtpy datetime constant instead of dtot({})

>>Steve,
>>Use the dtot() function to convert from date to datetime.
>
>Here's what I have now:
>
>set strictdate to 0
>LOCAL lcControl
>lcControl = THIS.PARENT.icDataControl
>IF !EMPTY(THIS.Caption)
>	 &lcControl = DTOT(CTOD(SUBSTR;
>         (DTOS(THIS.PARENT.idCurrentMonth),5,2)+"."+;
>	 THIS.Caption+"."+LEFT(DTOS(THIS.PARENT.idCurrentMonth),4)))
>ELSE
>		&lcControl = DTOT({})
>ENDIF
>THIS.PARENT.Release()	
>
>
>My form field that is expecting the return result is coming up with nothing because I have 'set century on' and 'set date to ansi'. How do I manipulate things from this point? I was 'this close'...
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform