Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Странно?ти при работе ?о ?татик контролами в ма??ивах  (Read 1751 times)

0 Members and 1 Guest are viewing this topic.

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile

Code: [Select]
var someArray = new Array (10);

for (var i = 0; i<10; i=i+1)
{
someArray[i] = someWindow.CreateStatic();
someArray[i].X = 10;  // <-Вылетает ?ообщение "Syntax Error"
}
Code: [Select]
for (var i = 0; i<10; i=i+1)
{
someArray[i] = someWindow.CreateStatic();
var somePlace = someArray[i];
        somePlace.X = 10;  // В?ё ОК
}
« Last Edit: November 12, 2009, 11:50:19 PM by 2.0 »
Logged

Zit

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 41
    • View Profile
Logged

2.0

  • Regular poster
  • ***
  • Karma: 4
  • Offline Offline
  • Posts: 217
    • View Profile
Logged
 

Page created in 0.171 seconds with 22 queries.