SetLocale
Posted: Mon Mar 08, 2021 10:23 am
Hello,
I found this code on xbase forum.
I do not have a Nls.ch .
How can we use SetLocale?
Best regards,
Otto
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