ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : Re: SET POINT TO   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

sam. 15 juin 2013, 16h21
Gregory Adam
Belgique Belgique

atoutfox.public.association

Re: SET POINT TO

Francis,

Il faut passer par un appel api
?GetWindowsDecimalSeparator()

*________________________________________________________________________________
function GetWindowsDecimalSeparator()

  #define LOCALE_USER_DEFAULT 0x400
  #define  LOCALE_SDECIMAL    0xE

  local length, s
  s = space(8)

  length = GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SDECIMAL, @m.s, len(m.s))

  if( m.length < 2)
    error 'GetLocaleInfo'
    return null
  endif

  return left(m.s, m.length-1)

endfunc
*________________________________________________________________________________
function GetLocaleInfo(locale, lcType, lpLcData, cchData)


  declare integer GetLocaleInfo in kernel32.dll ;
    long locale, ;
    long lcType, ;
    string @lpLcData, ;
    long cchData


  return GetLocaleInfo(m.locale, m.lcType, @m.lpLcData, m.cchData)
endfunc
*________________________________________________________________________________


Journal

eric leissler pense que ce message est la bonne réponse ou qu'il est utile
Francis Faure pense que ce message est la bonne réponse ou qu'il est utile
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000012145
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3