Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Seconds Off for a report
Message
De
24/02/2024 02:26:11
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01687644
Message ID:
01687646
Vues:
43
>Hi,
>
>I have a report which shows the date and the time when the report is printed (on the top of the report). I use the following expression:
>
>TTOC( DATETIME() )
>
>This prints the date and time exactly as I want to. Except it also prints the seconds. I prefer to print only hours and minutes and PM/AM.
>
>I know that I can Set Seconds Off.
>But, I am wondering, is it possible to Set Seconds Off somewhere in the Report (FRX file) and then restore the setting?
>
>TIA

You can use this expression:
left(ttoc(datetime()),iif(set("Century")="ON",16,14))
Or if you never change Set Century, you can skip the last part.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform