Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert and hyphen
Message
 
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:
01320342
Views:
14
This message has been marked as the solution to the initial question of the thread.
lcNumber = "1133412927"
*lcNumber = "01133412927"
? LTRIM(TRANSFORM(PADL(lcNumber,11), "@R 999-9999-9999") )
>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
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform