realbasic-nug.it
[Top] [All Lists]

Re: Matrici

To: REALbasic NUG Italian <realbasic-nug dot it at lists dot realsoftware dot com>
Subject: Re: Matrici
From: Lucio Liberi <lucioing at tin dot it>
Date: Mon, 30 May 2005 20:02:53 +0200
Delivered-to: realbasic-nug dot it at lists dot realsoftware dot com
References: <521f84f3ae591fcec5b74612465df034 at tin dot it> <606FFDC4-4C2F-451A-B03E-B884FE4B5090 at tiscali dot it> <187c25c4122ff0b5e817cd1a58dc58f2 at tin dot it> <2C9CE80C-442C-4D91-896E-DABA943CE13C at elbrigante dot it>
Il giorno 30/mag/05, alle 19:22, Andrea Baron ha scritto:


Il giorno 30/mag/05, alle ore 15:53, Lucio Liberi ha scritto:

Comunque, l'ho gia' fatto in un metodo esterno (in un modulo)... e funziona. Adesso mi chiedo perche' dentro al codice legato a qualche cosa, un bottone, un edit field... non funziona.

metti -1 invece di lasciare "in bianco"
Gia' fatto!!!!

Ma non ne vuole sentire.
Per una matrice ad una dimensione funziona, ma per matrici ad n....
Eppure hai visto, nel modulo per matrici che  ti ho mandato, scrivo:

Sub MatPrint(Mat(,) As double, screen As EditField)
  Dim i,j,m,n As integer

  m=ubound(Mat,2)
  n=ubound(Mat)

  for i=1 to n
    for j=1 to n
      screen.text=screen.text+format(Mat(i,j),"-##.0000")+"  "
    next j
    screen.text=screen.text+chr(13)
  next i
  screen.text=screen.text+chr(13)
  End Sub

Vedi? C'e' Mat(,)...
Non capisco, se scrivo la stessa cosa dentro un metodo, doesn't works....


Ciao
+=+=+=+=+=+=+=
Andrea Baron
bobo at elbrigante dot it
www.pensieriparole.it
ICQ: 47145510
+=+=+=+=+=+=+=
Per trovare un amico bisogna chiudere un occhio; per tenerlo, due. -- Norman Douglas


<Prev in Thread] Current Thread [Next in Thread>