Witam
Próbuję wystawić komentarz w mojej aplikacji, jednakże natknąłem się na problem otóż.
http://allegro.pl/webapi/documentation.php/show/id,42#method-input
jak mówi ta stronka wypadałoby dać ocenę sprzedaży.
Jak widać jest to robione tak:
SellRatingEstimationStruct[] - tablica struktur, jedno wymiarowa.
Spróbowałem to zrobić o tak:
SellRatingEstimationStruct[] ocenianie = new SellRatingEstimationStruct[4];
for (int i = 0; i < 4; i++)
{
ocenianie[i].sellratinggroupid = i + 1;
if (i == 0)
ocenianie[i].sellratinggroupestimation = (int)numericUpDown1.Value;
else if (i == 1)
ocenianie[i].sellratinggroupestimation = (int)numericUpDown2.Value;
else if (i == 2)
ocenianie[i].sellratinggroupestimation = (int)numericUpDown3.Value;
else if (i == 3)
ocenianie[i].sellratinggroupestimation = (int)numericUpDown4.Value;
}
jednak dostaję błąd o taki:
Additional information: Object reference not set to an instance of an object.
Proszę o pomoc.