Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert and hyphen
Message
From
05/06/2008 02:11:29
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01320326
Message ID:
01321793
Views:
17
>How can I insert hyphens from right to left,
>one after the fourth digit and other after the eighth digit,
>so that the number: 1133412927 becomes 11-3341-2927
>
>Sometimes it can be: 01133412927, and must become: 011-3341-2927
>
>Thanks
>
>Moises

If you want to bind a textbox to such a formatted
number, you should set up Inputmask and Format.

That way you need no transform, values will remain
without the hyphens and you won't need to retrasnform
to store the values back.

Inputmask = [99-9999-9999]
Format = [R]

You see how it is related to transform()...

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform