RE: [Axapta-Knowledge-Village] str2num with comma as decimal separator

2008-01-07 Thread Anil Ozay
it with this function. Regards, Anil Ozay MVP Dyanmics AX From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Piquot Sent: Saturday, January 05, 2008 10:19 PM To: Axapta-Knowledge-Village@yahoogroups.com Subject: [Axapta-Knowledge-Village] str2num with comma

RE: [Axapta-Knowledge-Village] str2num with comma as decimal separator

2008-01-07 Thread Jérôme Piquot
-Knowledge-Village@yahoogroups.com Objet : RE: [Axapta-Knowledge-Village] str2num with comma as decimal separator Hi Jerome, You are right, but you can add this function to Global class. static real str2NumFr (str strNumber) { ; strNumber = strreplace(strNumber

[Axapta-Knowledge-Village] str2num with comma as decimal separator

2008-01-05 Thread Jérôme Piquot
Hello, it seems that str2num does not take regional settings for converting strings to real. { str strNum = 125,45; // france decimal separator is , not . real num; num = str2num(strNum); // num will contain 125 } how can i convert numbers with decimal sépartor that is not . ? --