Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Formatting of a cell in grid
Message
From
04/10/2004 06:23:01
 
 
To
29/09/2004 01:29:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00947058
Message ID:
00948395
Views:
14
Rajesh

Just a little note of caution when formatting phone no. fields. Due to the proliferation of mobile (cell) phones, and the almost exponetial growth in subscribers of land-lines, we've found in the UK that we ran out of space with set formats.

e.g.

Most UK numbers were like 0XXX XXXXXX. In the 90's these were all changed to 01XXX XXXXXX

Many big cities had the format: (city - local exchange - number) 0X1 XXX XXXX, and London had the format:
01 XXX XXXX.
Most cities were changed to 01X1 XXX XXXX. London had to be split into: 0181 XXX XXXX and 0171 XXX XXXX (for inner and outer London). Later these were changed (respectively) to: 020 8XXX XXXX and 020 7XXX XXXX.

So "hard-coding" phone no. formats may lead to a legacy problem when your exchanges become full.

Terry

>Hello all
>
>Is there a way to format a column in the grid conditionally. Suppose I have a phone # field which may be empty in some cases as well. I want to use (XXX)XXX-XXXX where this field is not empty and a blank where it is empty. It shows ( ) - where field is blank. How to avoid it.
>
>Thanks
>
>Rajesh
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform