|
-
Oct 15th, 2003, 07:02 AM
#1
Thread Starter
Fanatic Member
RESOLVED ** Format - does not work
Hi
Why will this statement not format the users input....
VB Code:
txtinformation = Format$(txtinformation.Text, "####.00")
Thanks
For ex:
a user inputs a value i.e 12345 but I need the format function
to take this number and format it accordingly so txtinformation
would read i.e 1234.5...
Thanks
Last edited by holly; Oct 15th, 2003 at 07:14 AM.
** HOLLY ** 
-
Oct 15th, 2003, 07:06 AM
#2
If you read up on the Format function, you'll see that's not exactly how it works, but try this...
VB Code:
Format$("12345", "@@@@.")
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Oct 15th, 2003, 07:07 AM
#3
Retired VBF Adm1nistrator
Or this...
VB Code:
txtInformation.Text = Left$(txtInformation.Text, Len(txtInformation.Text) - 2) & "." & Mid$(txtInformation.Text, Len(txtInformation.Text) - 1)
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 07:13 AM
#4
Thread Starter
Fanatic Member
-
Oct 15th, 2003, 07:21 AM
#5
Frenzied Member
Or use the masked edit box (with a mask of ####.# ) instead of the normal text box.
'Buzby'
Visual Basic Developer
"I'm moving to Theory. Everything works there."
-
Oct 15th, 2003, 07:36 AM
#6
Retired VBF Adm1nistrator
Holly, you're fond of the 'ol winking aren't ya
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 09:31 AM
#7
Thread Starter
Fanatic Member
** HOLLY ** 
-
Oct 15th, 2003, 09:37 AM
#8
Retired VBF Adm1nistrator
Oh do you indeed
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 09:38 AM
#9
Thread Starter
Fanatic Member
** HOLLY ** 
-
Oct 15th, 2003, 09:39 AM
#10
Retired VBF Adm1nistrator
So how's sunny manchester à la mer this time of year then ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 10:19 AM
#11
Thread Starter
Fanatic Member
-
Oct 15th, 2003, 10:31 AM
#12
Retired VBF Adm1nistrator
Ireland, the most beautiful country that ever was, being compared to Manchester?
Not to say anything against Manchester, but I'm offended
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 10:43 AM
#13
Thread Starter
Fanatic Member
** HOLLY ** 
-
Oct 15th, 2003, 10:45 AM
#14
Retired VBF Adm1nistrator
*mutters to self*
Yeah it does have a habit of raining from time to time. Suppose its something to do with us protecting you from the Atlantic
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 10:52 AM
#15
Thread Starter
Fanatic Member
-
Oct 15th, 2003, 11:04 AM
#16
Retired VBF Adm1nistrator
*jamie ponders what britain's there for ....*
Hmmmm. Can't think of anything 
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 15th, 2003, 11:07 AM
#17
Thread Starter
Fanatic Member
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
|