Archive: SectionGetText Bug???


SectionGetText Bug???
  Hello,

I use this:


onInit

SectionGetText${Sec2} $0
MessageBox MB_OK$0
Functionend

Section"!Section1" Sec1
SectionIn RO
...
>SectionEnd

Section"Section2" Sec2

SectionEnd
>
When i start this script and want to get the text of Sec2 I get "Section1".
I dont know where my fault is.


Help please
Thanks
aemik

Sec2 is undefined at that specific point of the script. Move .onInit below the section definition.


Thank you very much!!!