?
Solved

Decimal sign for a number CEdit

Posted on 2001-08-13
5
Medium Priority
?
389 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…

719 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