howto put the same number 36 times in a list?

Ask a Question related to Macromedia Director Lingo, Design and Development.

  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. Similar Questions and Discussions

    1. Number of times visited
      I am using Coldfusion with Microsoft Access database integration to create applications. I am in desperate need for appropriate Coldfusion code so...
    2. Howto determin the number of elemnts of an array
      Hi, how can I determin the number of elements of an array? I saw function array_dims() which returns a string value representing the dimensions of...
    3. setting number of times Flash plays
      I've got a small Flash piece on a website. I want it to play three times and then stop. I've done this in the past and can't remember how, other...
    4. identify duplicates in an array and number of times duplicated
      hi, i have created an array from recordset containing user names eg. (davidp, davidp, evenf, patricka, rebeccah) which i have sorted in...
    5. HowTo check if my String is a Number (Integer) ?
      You can try If IsNumeric(str) Then Convert.ToInt32(str) End If -- Craig Deelsnyder Microsoft MVP - ASP/ASP.NET
  3. #2

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

    From: "Robert" <weisvisch@xs4all.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

  4. #3

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

    Dan Manes wrote:
    > From: "Robert" <weisvisch@xs4all.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

Posting Permissions

  • You may not post new threads
  • You may 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