Home
Community
Discussion Forums
Most Active Software Boards
Measurement Studio for VB6
Topic
Measurement Studio for VB6
Register
·
Login
·
Help
Community
Category
Board
Documents
Users
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Search instead for
Did you mean:
Topic Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
All Forum Topics
Previous Topic
Next Topic
Format String
Format String
Curt_C
Active Participant
02-23-2005
08:25 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Does anyone know how to change the format string of a number control at runtime.
ex:
numY.FormatString = "0.00 W"
to
numY.FormatString = "0.00 A"
thanks
Curt
0
Kudos
Message
1
of 3
(6,290 Views)
Reply
Re: Format String
Elton Wells
Active Participant
02-23-2005
10:01 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
When you say "number control," you're talking about the CWNumEdit control? If so, the example code that you posted should work. Could you please post a small test project that demonstrates the problem that you're having? Thanks.
- Elton
0
Kudos
Message
2
of 3
(6,284 Views)
Reply
Re: Format String
Curt_C
Active Participant
Author
02-23-2005
11:12 AM
Options
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report to a Moderator
Hi Elton,
If figured it out
this works
numY.Value = 7.2
numY.FormatString = "0.00"" V"""
results in
7.20 V
thanks for the reply
Curt
0
Kudos
Message
3
of 3
(6,278 Views)
Reply
All Forum Topics
Previous Topic
Next Topic