basically I want to use SectionSetFlags but on a section whose variable name is stored inside a variable $0. Here's an idea about it:
StrCpy $0 "blah"
SectionSetFlags ${$0} 1
however, this doesn't seem to work because when I debug and insert MessageBox MB_OK ${$0} it displays "${blah}" where as I need it to show the integer value of ${blah}.
The reason why I am doing it this way is because this is in a loop, and the section name changes constantly.
Sections with Variable Names
2 posts
${blah} is just a compile time define. When compiled, ${blah} is replaced with its value.
Rather than reference the define ${blah}, just give it a straight variable that contains the Section index; 0 being the first Section, 1 being the second and so on.
StrCpy $0 0
SectionSetFlags $0 1
This will set the flags for the first Section.
-Stu
Rather than reference the define ${blah}, just give it a straight variable that contains the Section index; 0 being the first Section, 1 being the second and so on.
StrCpy $0 0
SectionSetFlags $0 1
This will set the flags for the first Section.
-Stu