The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
As BorIDE progresses...
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)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)