x


Why i m not able to increase list by using append (boo)?

I m trying to create a list like i use in python but after creating it here i m not able to add more items in it, when i use checkNumber.append(3) its say error that " append is not a member of Boo.Lang.List" PLZ HELP

import UnityEngine

class book (MonoBehaviour):

def Update():
    if Input.GetButtonDown('Fire1'):
        insert()

def insert():
    checkNumber = [0,1,2,3]           //is a list
              checkNumber.append(4)             //adding more no.
more ▼

asked Apr 02 '11 at 02:35 AM

Craxter gravatar image

Craxter
17 4 4 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

hey do not worry now i figured it out.. i used checkNumber.Add(3) instead of checkNumber.append(3)

LOL! wish this will help others too :)

more ▼

answered Apr 02 '11 at 03:02 AM

Craxter gravatar image

Craxter
17 4 4 7

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5094
x70

asked: Apr 02 '11 at 02:35 AM

Seen: 855 times

Last Updated: Apr 02 '11 at 02:50 AM