See, if this message can help:
Re: Moving couple columns in a grid Thread #
427567 Message #
427627>I am trying to create a class to access ini file,and get this problem: How to add a key to a section? i use this:
>
>init event:
>*******************************************************************
>Declare WritePrivateProfileSection IN kernel32 As WriPrivSect ;
> STRING lpAppName,;
> STRING lpString,;
> STRING lpFileName
>*******************************************************************
>
>addkey method:
>*******************************************************************
>LPARAMETERS cSection, ckeyname
>
>LOCAL nResult
>nResult = WriPrivSect(cSection, ckeyname ,"", this.inifile)
>Return nResult
>*******************************************************************
>
>Although it will work, but if i try to write a value for this key, always failed.The GetPrivateProfileString API always return this key's name!
>
>How can i do?
If it's not broken, fix it until it is.
My Blog