Chce utworzyc tablice, ktorą uzupelniam dynamicznie w .each().
Chce uzyskac takie cos:
ContractsArray[0] = nazwa kontraktu;
ContractsArray[1] = innanazwa kontraktu;
var ContractsArray
= new Array(); alert
("Count before increament : " + Count); // Count before increament : 0 alert(contract.ContractCode); // poprawna nazwa
ContractsArray
[Count] = contract
.ContractCode
; alert
("Count after increament : " + Count); // Count after increament : 1 alert
("ContractsArray[Count]: " + ContractsArray
[Count]); //ContractsArray[Count]: undefined
Dlaczego dostaje undefined zamiast oprawnej nazwy? jak toz robic poprawnie?