Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic inputmask (format) in report fields
Message
De
10/07/1998 13:18:57
 
 
À
10/07/1998 12:00:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00116176
Message ID:
00116215
Vues:
18
>Hello everyone,
>
>I need to print the same report with two diferent inputmask's in some of the fields like :
>
>I want to run the report sometimes with a format like :
>. "###,###.#"
>
>and sometimes with :
>
>. "###,###.##"
>
>I've tried using a variable and a macro in the format option of the field in the report, but nothing worked.
>
>
>Thanks in advance,
>
>
>Ricardo Parreira

You can use TRANSFORM as the report value and do the format at report run time:

TRANSFORM(value,IIF(condition=1,'###,###.#','###,###.##'))

Just make sure to leave enough room for the larger field.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform