|
-
Nov 21st, 2004, 07:14 PM
#1
Thread Starter
Frenzied Member
Format Function Right To Left
When I run the following
VB Code:
Print Format("98765432111","(###) ###-####")
The answer is :
(9876) 543-2111
I want it to return:
(987) 654-32111
Is there any way to do it?
Please help.
Thanks.
Last edited by shragel; Nov 21st, 2004 at 07:25 PM.
-
Nov 21st, 2004, 07:19 PM
#2
Frenzied Member
Try
VB Code:
Print Format("98765432111","(000) 000-0000")
-
Nov 21st, 2004, 07:25 PM
#3
Thread Starter
Frenzied Member
Figured it out myself.
Thanks for trying
VB Code:
Format("98765432111","!(@@@) @@@-@@@@ @@@@@@@@")
-
Nov 21st, 2004, 07:28 PM
#4
Frenzied Member
No probs - thanks for the answer - I have learned something myself there.
-
Nov 21st, 2004, 07:38 PM
#5
Thread Starter
Frenzied Member
The exclamation mark does the trick.
But it seems to work only with the @ placeholder.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|