> ----- Original Message ----- > From: "Holland, Guy" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, March 08, 2004 12:15 PM > Subject: Language Independence on Serial Output of > "." > > > I have an application that outputs a string with > numbers via the serial > port. Ex. "SG1.23,4.56,7.89". I developed the > application in English but > when the application was installed onto a > Non-English say Holland language, > the output string turns into "SG1,23,4,56,7,89". > The periods are replaced > with commas. I believe it might happen with all > languages that use commas > ($1,00) rather than periods ($1.00). How can I get > around this problem so > that my application can be language independent? > > TIA, > > Guy Holland > Intralase Corp. > >
You can go to control panel->Regional Options->Numbers tab to change the Decimal Symbol to "." instead of "'". But that will affect all the decimal numbers on that computer. So may not be the best way to handle it. Unless you can retrieve what the decimal symbol is used in a computer, then you can programmatically change your command string to match that settings or you have to make up a list of all the contries that use "," for decimal numbers so that you can set the strings correctly depends on the user input what country they are. I know Germany use "'" instead of "." too at least. ===== Irene He [EMAIL PROTECTED] msn Messenger ID: [EMAIL PROTECTED] www.hytekautomation.com www.geocities.com/irene_he