473,698 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Display personnal format for numeric value

Here's my problem, I read numeric value and I want to display this
value like this : 123 678.

Value read : 123678
Value display : 123 678

I want space for separator

thanks for your help
Nov 18 '05 #1
3 1709
Format(intValue ,"### ###") is intValue is a number datatype

<er***********@ msn.com> wrote in message
news:1l******** *************** *********@4ax.c om...
Here's my problem, I read numeric value and I want to display this
value like this : 123 678.

Value read : 123678
Value display : 123 678

I want space for separator

thanks for your help

Nov 18 '05 #2
Yes it's a numeric datatype but actually, it display ### ### not the
numeric value

Why ?

On Wed, 8 Sep 2004 09:15:32 -0400, "Thomas Dodds"
<th*********@ho tmail.com> wrote:
Format(intValu e,"### ###") is intValue is a number datatype

<er*********** @msn.com> wrote in message
news:1l******* *************** **********@4ax. com...
Here's my problem, I read numeric value and I want to display this
value like this : 123 678.

Value read : 123678
Value display : 123 678

I want space for separator

thanks for your help


Nov 18 '05 #3
Dim s As String

' Gets a NumberFormatInf o associated with the en-US culture.
Dim nfi As System.Globaliz ation.NumberFor matInfo = New
System.Globaliz ation.CultureIn fo("en-US", False).NumberFo rmat
nfi.NumberDecim alDigits = 0

' Displays a value with the default separator (",").
Dim myInt As Int64 = 123678
s = myInt.ToString( "N", nfi)

' Displays the same value with a blank as the separator.
nfi.NumberGroup Separator = " "

s = myInt.ToString( "N", nfi)
maybe overkill for what you are looking to do...

Greg

<er***********@ msn.com> wrote in message
news:1l******** *************** *********@4ax.c om...
Here's my problem, I read numeric value and I want to display this
value like this : 123 678.

Value read : 123678
Value display : 123 678

I want space for separator

thanks for your help

Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2404
by: Chris Stiles | last post by:
Is there a human readable dump format for objects ? As opposed to pickling ? It doesn't necessarily have to be XML - in fact i'd prefer if it wasn't ;) - but ISTR an XML dump library. -- regards, chris
1
3512
by: nic | last post by:
Hi, I have a textbox value that I need to force (and format) to be a numeric value. For example, I want to allow a user to type 1000 or 1,000 or 1,000,000 but not something that is not numberic. Essentially I want to ignore the commas. If I use the compareValidator it does not allow commas. Is there an easy way to do this? Also I need to format a string such as 1000 as 1,000 (without any decimal places) When I format 1000 as a...
2
12508
by: AMDRIT | last post by:
Hello Everyone, I would like to format the Display Members of a combobox's datasource. Is there a way to apply a format without subclassing the original datasource? For example, given a list of decimal values, format them as currency values with a leading currency symbol and 2 decimal places. TIA Class Test
10
668
by: Badis | last post by:
Hi Guys, I'm trying to retrieve data defined as Numeric in Cache database and display it in a textbox but it's giving me this error: "Input string was not in a correct format" Cheers.
11
2251
by: RipperT | last post by:
Don't know if this group covers web apps, but here goes. In VS 2005, I am trying to get variables to hold thier values during postback from the server. I convert a text box's user-keyed value to an integer and assign it to a module level variable, then convert the variable and assign it to a hidden text box, setting it's EnableViewState to true so it returns with the reload. Then in the form's load event, I attempt to convert the contents...
3
5716
by: maylee21 | last post by:
hi, anyone can help me figure out how to read data from a text file like this: 10980012907200228082002 and extract the data according to this kind of format: Record type 1 TY-RECORD PIC (1). ID-PARTICIPANT PIC (6).
2
15396
by: John | last post by:
Arrggg…Format String Hell…Hello there, I am attempting to format a decimal value as a % (percentage). That is; I want .12 to be displayed and edited as 12% No matter what I try I cant get it to work :( I can get it working for display format, but not for the editformat :( Below is my code Me.txtDefaultAdminFeePercentage.Properties.DisplayFormat.FormatType =
0
6336
progdoctor
by: progdoctor | last post by:
I have scripts that can format a HTML input value as a numeric format or money format.. Hope its useful function XFormat(arrayCtl) { this.arrCtl = arrayCtl; if (typeof XFormat._initialized == 'undefined') { XFormat.prototype.setKeyPress = function(){return 0;}; XFormat.prototype.setFocus = function(){this.select();};
7
13668
by: Andrus | last post by:
How to create format string for decimal data type which shows blank for zero and default format otherwize ? I tried format string "f;f;#" but this shows f for nonzero numbers. Andrus. using System.Windows.Forms;
0
8674
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9027
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.