Path: csiph.com!news.redatomik.org!aioe.org!.POSTED!not-for-mail From: Paperino Newsgroups: it.comp.lang.visual-basic Subject: Re: E' una matrice o no? Date: Wed, 2 Aug 2017 19:52:58 +0200 Organization: Aioe.org NNTP Server Lines: 16 Message-ID: References: NNTP-Posting-Host: E4R26L1Wjj25rIMNgEwEuQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it; rv:1.8.1.24) Gecko/20100228 Thunderbird/2.0.0.24 Mnenhy/0.7.5.666 X-Notice: Filtered by postfilter v. 0.8.2 Content-Language: it Xref: csiph.com it.comp.lang.visual-basic:19131 Greg ha scritto: > Disegno sul form una textbox e gli do indice 0, quindi ho creato una matrice di textbox formatada > un solo elemento. > Poi da codice, con il metodo Load creo altri elementi della matrice: > n = n + 1 > Load Pic(n) > Pic(n).Top = ...... > Pic(n).Left = ...... > alla fine del ciclo, l'istruzione: > a = UBound(Pic) ma anche a = UBound(Pic()) > genera un errore di compilazione, senza numero, "prevista matrice" > Come mai? La matrice di PictureBox viene creata, ma poi non la riconosce? Text.UBound Bye, G.