|
-
Oct 11th, 2000, 10:40 AM
#1
Thread Starter
Lively Member
does anybody know the format character for 'display if present' ?
Example::
Format("hi","xxxxx") would yield " hi"
what I need the is 'x' that makes that possible, also if there is one for numbers too, that would be great, ex.
Format(32.45,"$99990.00") would yield "$ 32.45"
Thanks in advance.
-
Oct 11th, 2000, 11:00 AM
#2
Fanatic Member
your second example works like this
Debug.Print Format(32.45, "$0.00")
as for the first I don't know
you could do this to limit the length
debug.print left$("My Text",6)
Kurt Simons
[I know I'm a hack but my clients don't!]
-
Oct 11th, 2000, 11:47 AM
#3
Thread Starter
Lively Member
okay, so I forgot to include the code tags in my first post, here it is again
Code:
format("hi","xxxxx") would yield " hi"
and
format(32.45,"$99990.00") would yield "$ 32.45"
any ideas?
-
Oct 11th, 2000, 12:02 PM
#4
Fanatic Member
Format("safdsfd", "@@@@@@@@@@@@@@@@@@")
MSDN
User-Defined String Formats (Format Function)
Kurt Simons
[I know I'm a hack but my clients don't!]
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
|