SetLocale

Post Reply
User avatar
Otto
Posts: 6414
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 31 times
Been thanked: 2 times
Contact:

SetLocale

Post 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
nageswaragunupudi
Posts: 10729
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 10 times
Contact:

Re: SetLocale

Post by nageswaragunupudi »

Regards

G. N. Rao.
Hyderabad, India
Post Reply