Page 1 of 1

SetLocale

Posted: Mon Mar 08, 2021 10:23 am
by Otto
Hello,
I found this code on xbase forum.
I do not have a Nls.ch .
How can we use SetLocale?

Code: Select all | Expand



#include "FiveWin.ch"
#include "Nls.ch"
//----------------------------------------------------------------------------//

function Main()


? SetLocale( NLS_SDECIMAL )  // --> "."
SetLocale( NLS_SDECIMAL, "," )  // Umstellen auf Komma

n := 12.34
? n  // --> 12,34
   
return nil
//-----------------------


 



Best regards,
Otto

Re: SetLocale

Posted: Mon Mar 08, 2021 1:38 pm
by nageswaragunupudi