473,387 Members | 1,364 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

DIsplaying Negative Numbers With A Masked Edit Textbox

Hi,

I am using VB6 and have a masked edit text box. In the mask property I have #.####. I am also using an access database. The textbox works fine if the number is positive (1.2345), however if the number is negative I get an "Invalid Property" error message when I try to display it. Is there a way to fix this without using ##.####.

Thanks,

Mark
Dec 19 '06 #1
3 4482
axtens
32
Buried deep in this chinese translation is a mask format that purports to handle negative numbers. Perhaps there's something to be used from
'Show two thousand decimal digits and the separator. enclose 'negative numbers within parentheses. and show "Zero" when "0" 'has been entered. MaskEdBox1.Format = "#. ##0.00; (#, ##0.00) ;Zero "
Kind regards,
Bruce.
Dec 20 '06 #2
Killer42
8,435 Expert 8TB
Buried deep in this chinese translation ...
Just had a look. What the heck is "Gologe"?
Dec 22 '06 #3
axtens
32
Just had a look. What the heck is "Gologe"?
Good question ... no idea. I called up Google Translator, gave it the link to the Chinese website and that's what I got. If Google can't translate Google ...
Dec 22 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Eric Kiernan | last post by:
I have a masked edit box which has a value of "8/30/2004", and when i programically set the value to mskedbox1=date, the vb blows up with an invalid property value error. any ideas? It works ok if...
4
by: Charles A. Lackman | last post by:
Hello, I have some textboxes that are doing addition: Dim AString As Double AString = Convert.ToDouble(TextBox1.Text) - Convert.To(DoubleTextBox2.Text) TextBox3.Text =...
4
by: Bob Bryan | last post by:
I am using a select statement to obtain a result set back with aggregated data. The problem is that I am seeing column data with 11 to 13 digits after the decimal point. I tried using the STR...
1
by: metridevkk | last post by:
Hi, I need to use a Masked Edit Control in my ASPX page. In VS.Net, I added the reference to MSMask.dll for my application & also added the MaskEdBox to the Toolbox. After adding the control to...
1
by: david | last post by:
Anybody could give me hint how use this control in asp.net web form. The problem is: I try to use COM component in my web form app by using MS training kit for windows form application. I would...
1
by: Kostis | last post by:
Hello there! I have created a windows application in VB.NET and I want to retrieve data from an access database. I create the OleDbConnection, an OleDbAdapter, a dataset and finally a Data Form...
3
by: Panos | last post by:
Hi all, I can't clear a Masked edit control. I use it to input dates, so I have defined the mask as "##/##/####". I use the the well known meb.mask="" meb.text="" , but nothing happens. Does...
0
by: Zim Babwe | last post by:
I have a MaskedEdit textbox on my Windows form (VS 2005) and I want to mask a phone number. I looked up the digits and 0 is mandatory, 9 is optional. I have my mask defined as (000) 000-0000 X...
4
by: mwcapps | last post by:
I have unformatted text in my SQL 2005 database. I'm pulling it into a masked edit text box with a (999)999-9999 mask. Unfortunately, when I attempt to save the data back it doesn't work because I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.