FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SetLocale
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
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?

Code (fw): Select all Collapse
#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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: SetLocale
Posted: Mon Mar 08, 2021 01:38 PM
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion