Página 1 de 1

Bound Error : array assign

Enviado: 05 Out 2004 14:21
por vagner_cip
Olá

Está mensagem apareceu quando o sistema estava tentando criar uma matriz

mxipi:=mcoditem+" "+str(mipi)+" "+str(mmvipi)
nvezes=nvezes+1
XIPI[NVEZES]=MXIPI


Algume sabe o que pode ser, será que está faltando declaração ?

Enviado: 05 Out 2004 15:41
por Dudu_XBase

Código: Selecionar todos

BASE/1133    Bound error: array assign

Explanation:  When attempting to assign a new value to an array
element, the subscript specified was greater than the number of elements
in the array.

Action:  Correct the program.  The LEN() function can be used to
determine the number of elements in an array.  The AADD() and ASIZE()
functions can be used to change the size of an array.

Tente usar isso naum esquecendo a matriz ou vetor tem limite de posições...eu acho q 4096 ...

// declara a matriz xIpi
xIpi := {}

mxipi:=mcoditem+" "+str(mipi)+" "+str(mmvipi)
// Adiciona na matriz
aadd(xIpi,mxipi)