Solved

Decimal sign for a number CEdit

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 52
sum67 challenge 35 89
wait notify demo infinite loop 3 81
Change to event 1 73
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 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

19 Experts available now in Live!

Get 1:1 Help Now