Professional Web Applications Themes

howto put the same number 36 times in a list? - Macromedia Director Lingo

From the manuals I understand that you make a list with 36 times same number: [20, 20, 20, 20, etc.] Is there some easy operation that does it 36 time for me like: list=[] list.add(20)*36 the *36 is just my idea Anybody a hint how I can do this thanks, Robert...

  1. #1

    Default howto put the same number 36 times in a list?

    From the manuals I understand that you make a list with 36 times same
    number:
    [20, 20, 20, 20, etc.]
    Is there some easy operation that does it 36 time for me like:
    list=[]
    list.add(20)*36
    the *36 is just my idea
    Anybody a hint how I can do this


    thanks,
    Robert

    Robert Guest

  2. #2

    Default Re: howto put the same number 36 times in a list?

    From: "Robert" <weisvischxs4all.nl>
    > From the manuals I understand that you make a list with 36 times same
    > number:
    > [20, 20, 20, 20, etc.]
    I'm not sure if this qualifies as easy, but the best I can come up with
    (without using any xtras) would be:

    RepeatList = list()
    RepeatList[36] = 0
    RepeatList = RepeatList + 20

    HTH,

    -Dan


    Dan Manes Guest

  3. #3

    Default Re: howto put the same number 36 times in a list?

    Dan Manes wrote:
    > From: "Robert" <weisvischxs4all.nl>
    >
    >>From the manuals I understand that you make a list with 36 times same
    >>number:
    >>[20, 20, 20, 20, etc.]
    >
    >
    > I'm not sure if this qualifies as easy, but the best I can come up with
    > (without using any xtras) would be:
    >
    > RepeatList = list()
    > RepeatList[36] = 0
    > RepeatList = RepeatList + 20
    >

    works,

    thanks,
    Robert

    Robert Guest

Similar Threads

  1. Number of times visited
    By ed@oac in forum Coldfusion Database Access
    Replies: 3
    Last Post: February 17th, 11:44 AM
  2. Howto determin the number of elemnts of an array
    By Egyd Csaba in forum PostgreSQL / PGSQL
    Replies: 4
    Last Post: January 31st, 08:32 PM
  3. setting number of times Flash plays
    By LauraK in forum Macromedia Flash
    Replies: 2
    Last Post: January 2nd, 11:56 PM
  4. HowTo check if my String is a Number (Integer) ?
    By Craig Deelsnyder in forum ASP.NET
    Replies: 0
    Last Post: July 27th, 11:06 PM
  5. Howto list Mysql Table Headers using PHP
    By Ow Mun Heng in forum PHP Development
    Replies: 1
    Last Post: July 21st, 01:44 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139