Solved

Decimal sign for a number CEdit

Posted on 2001-08-13
5
376 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 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