1. #1
    New Member Follow User Gallery
    Join Date
    May 2011
    Posts
    6

    Default Loops and IButtons

    Why does this script only create one button?

    [CODE][ISubPalette,"ZPlugin:MyButtons"]

    [Loop, 4,
    [IButton,[StrMerge,"ZPlugin:MyButtons:button",loopCount],[StrMerge,"Button ",loopCount],
    ,,160 /*width*/,,,/*height*/]
    ,loopCount][/CODE]

    shouldn't it make four?

  2. #2
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    No idea why that doesn't work, though frankly, even if it did it would be of limited usefulness.

  3. #3
    Senior Member Follow User Gallery
    Join Date
    May 2007
    Location
    Raleigh NC
    Posts
    484

    Default

    I believe the buttons need to have unique names?

    EDIT: Never mind. I didn't see the StrMerge with the loopcount!
    Last edited by Nyx702; 11-17-12 at 03:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •