Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Format display of zipcode problem
Message
De
28/03/2002 13:36:30
 
 
À
28/03/2002 13:27:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00638566
Message ID:
00638578
Vues:
15
I get the same result: junk i.e. IF(2E...
Strange, huh? It doesn't appear that you can use an IIF() in the format of a field on a report? Yet I could swear that I remember doing this in the past.

Tracy

>I'd use...
>
>
>iif(len(alltrim(po_zip))>5,transform(po_zip,"@R 99999-9999"),left(po_zip,5))
>
>
>Of course this is assuming that your zipcode with either 5 characters or 9 characters (ie your "-" is never stored in the zipcode).
>
>>I am trying to display zip codes using the following in the format of the field box:
>>
>>
>>IIF(LEN(ALLTRIM(PO_ZIP))>5,@R 99999-9999,99999)
>>
>>
>>It does not work obviously. Is there anyway to do this? I do not want something like: 28314- when the zip code is not 9 digits. Yet I want the dash if it is 9 nine digits. Any ideas? TIA,
>>Tracy
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform