Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Format Expression for phone number mask
Message
From
16/04/2010 13:55:53
 
 
To
16/04/2010 13:48:21
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01460592
Message ID:
01460600
Views:
55
>>Embarrassed to ask this but I've been away from VFP for a while. Brain freeze.
>>
>>I have a phone number character field in a report. Data stored as 2165551212 and I want it to print as (216)555-1212.
>>
>>What do I put in the format expression property in the report designer?
>>
>>TIA
>
>"@R (999)999-9999"
>
>Tamar
Hi Tamar

I started with the @R and since I didn't have the template interleave set I was getting funny looking numbers and I thought that was the problem but i also notice the Report designer seems to remove the @R anyway when you save it.

Working now with (999) 999-9999 and template characters set to interleave

(I'd give you stars but you are already a star <bg> )

How are you doing ?


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Previous
Reply
Map
View

Click here to load this message in the networking platform