Why do I get this error?

new BookmarkLockedFalling
laurent
New Member
*

laurent Avatar

Posts: 2Male

Post by laurent on Dec 22, 2008 18:07:02 GMT -5

Hi! I get an error with this code:

dim choice$(2)
choice$(1)="choice1"
choice$(2)="choice2"
call displaytest
wait

sub displaytest
listbox #mylist, choice$(), 1
end sub

If I code like this, it doesn't appear:

dim choice$(2)
choice$(1)="choice1"
choice$(2)="choice2"
listbox #mylist, choice$(), 1
wait

Why my listbox command doesn't work in the subroutine?
(sorry about my English, I'm French ;D)
Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550

Carl Gundel - admin
Administrator
*****

Carl Gundel - admin Avatar

Posts: 550