SetLocale

SetLocale

Postby Otto » 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: Select all  Expand view


#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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6322
Joined: Fri Oct 07, 2005 7:07 pm

Re: SetLocale

Postby nageswaragunupudi » Mon Mar 08, 2021 1:38 pm

Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 82 guests