Announcement

Collapse
No announcement yet.

gflag iteration

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • gflag iteration

    Is it possible to iterate in a loop through !define gflags names? For example, get values of ${Stuff$1}, where $1 is a number in ascending order? This example does not work:

    PHP Code:
    !define Stuff00    "D939D0765789"
    !define Stuff01    "2983C201F3A4"
    !define Stuff02    "5DC3"
    ...
        
    StrCpy $""

        
    ${For} $0 0 2

            IntFmt 
    $"%02d" $0
            StrCpy 
    $$2${Stuff$1}

        ${
    Next

  • #2
    Many times I wished something like that was doable but it isn't. No such thing as compile time loops/variables.
    PostEnd:

    Comment


    • #3
      Ok, thanks anyway.

      Comment


      • #4
        You can generate a batchfile with !appendfile and run it with !system and do the looping in the batchfile and generate a .nsh
        IntOp $PostCount $PostCount + 1

        Comment


        • #5
          I knew that my "it can't be done" would draw a wizard out.
          PostEnd:

          Comment

          Working...
          X