Solved

Decimal sign for a number CEdit

Posted on 2001-08-13
5
371 Views
Last Modified: 2013-11-20
Is there any way to change the decimal sign from . to , inside a CEdit control with the number-property selected?
0
Comment
Question by:JensHell
5 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 6379005
why do u wanna do that? (just curious)
0
 
LVL 3

Expert Comment

by:krispols
ID: 6379628
no, the CEdit use the country specific information to display that.
0
 
LVL 8

Accepted Solution

by:
VinExpert earned 50 total points
ID: 6382883
Hi,

If u have selected number property for a edit box, then I dont think it will allow even . also. Otherwise, if u are handling it explicilty in the code, then whenever u encounter a ".", just replace it with "," in the code.

Try it out.
VinExpert
0
 
LVL 4

Expert Comment

by:aponcealbuerne
ID: 6385409
I think you could do something like this

CString cstrx;
GetDlgItemText(IDC_EDIT2,cstrx); //the text in your CEdit with a "." decimal
cstrx.Replace(".", ","); // Replace "." with ","
SetDlgItemText(IDC_EDIT2,cstrx); // Replace the text in your control


Hope helps
0
 
LVL 23

Expert Comment

by:Roshan Davis
ID: 9521173
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by: VinExpert

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 48
Windows Drag & Drop Location 2 94
Unix / Linux grid computing 5 149
How to convert MFC::CString to UTF8 wchar_t* 10 150
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now