Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
As BorIDE progresses...
boriel Wrote:Thanks, will test it.
Also, the new syntax allows directly initializing arrays with complex constant expressions like @labels or @label + 2 * @label3. So, try you could replace:

Code:
DIM tiles(16) as Uinteger: REM <== Positions 10..16 are not used??

tiles(0)=@void
tiles(1)=@Sea
tiles(2)=@Bridge
tiles(3)=@Park
tiles(4)=@Schutt
tiles(5)=@skyscraper

tiles(6)=@car
tiles(7)=@PoliceCar
tiles(8)=@People
tiles(9)=@house
to
Code:
DIM tiles(9) as UInteger => { @void, @Sea, @Bridge, _
    @Park, @Schutt, @skyscraper, _
    @car, @PoliceCar, @People, @house }

:!: Notice that in the 2nd way, it's an initialization, so the number of elements of the array (0 .. 9 => 10) must match the number of elements between brackets.
(cannot test it at this moment, but should work)

Looks like very useful feature. I will test it later with some other Programs.
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)