Just a warning for developers:
If cPar = NIL the GetPvProfString() return the name of the first cSection.
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL cCode01, cCode02
LOCAL cPar
cPar := "First"
cCode01 := GETPVPROFSTRING( cPar , "Code01" , "", ".\test_ini.ini" )
cCode02 := GETPVPROFSTRING( cPar , "Code02" , "", ".\test_ini.ini" )
? cCode01
? cCode02
cPar := NIL
cCode01 := GETPVPROFSTRING( cPar , "Code01" , "", ".\test_ini.ini" )
cCode02 := GETPVPROFSTRING( cPar , "Code02" , "", ".\test_ini.ini" )
? cCode01
? cCode02
RETURN NIL
test_ini.ini
[First]
Code01=one_one
Code02=one_two
[Second]
Code01=two_one
Code02=two_two
Bye bye
Marco