Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change field format
Message
 
À
09/05/2007 03:04:25
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Divers
Thread ID:
01223683
Message ID:
01223721
Vues:
16
This message has been marked as the solution to the initial question of the thread.
>Dear all
>i want to know how to change field format ( in detail band ) based on a variable value.
>for example i want if FldFmt = 1 so my field format be @J 999999.999 and if FldFmt = 2 so @J 999999.9
>Thanks for your help

Instead of defining the field as numeric, define it as character. In the expression enter something like this:

TransForm(MyData, IIF(FldFmt = 1, '@J 999999.999', IIF(FldFmt = 2, 'asldkfjalsdfj', 'alsdkfjas')
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform