MATRIZ E VETOR EM VB 6

JR.CESARINO 09/06/2005 14:18:45
#88015
como declarar uma variavel matriz ou vetor em VB, e como referenciar a ela.
USUARIO.EXCLUIDOS 09/06/2005 15:57:34
#88057
   
Dim Matriz(999,999)
Dim Vetor(999)

Na hora de usa-las:

Matriz(0,1) = "teste"
Matriz(0,1) = "teste1"
Matriz(2,2) = "teste2"
Matriz(3,11) = "teste11"
.
.
.
.
Matriz(999,999) = "teste999"
===================
Vetor(0) = "Teste0"
Vetor(1) = "Teste1"
Vetor(2) = "Teste2"
Vetor(3) = "Teste3"
Vetor(4) = "Teste4"
.
.
.
.
Vetor(999) = "Teste999"


Espero que tenha ajudado...

[] 's
LCSD 09/06/2005 16:06:10
#88060
FortiNight

Boa Tarde

Sempre é bom declarar o tipo de dados, senão será VAriant e utilizará muitos recursos sem necessidade.

Jr.Cesarino

Veja o link abaixo:

ARRAY COM ESTRUTURA TYPE PERMISSOES USUARIO

ATé Breve
[s92]
Tópico encerrado , respostas não são mais permitidas