Solved

Decimal sign for a number CEdit

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 54
Separate files macro - Errors on larger data set 18 69
format the code in java 6 93
Sed question 2 83
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

815 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

10 Experts available now in Live!

Get 1:1 Help Now