Bound Error : array assign

Fórum sobre a linguagem CA-Clipper.

Moderador: Moderadores

vagner_cip
Usuário Nível 1
Usuário Nível 1
Mensagens: 30
Registrado em: 05 Out 2004 14:07

Bound Error : array assign

Mensagem 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 ?
Dudu_XBase
Membro Master
Membro Master
Mensagens: 1071
Registrado em: 25 Ago 2003 16:55

Mensagem 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)


________________________________________________________________________________________________________
(Aow Saudade) Clipper 5.2e, Blinker 7, RDD SIXNSX, DBFCDX /Xharbour 1.0, Rdd Mediator (Mysql) Free , RDD Sqlrdd (Sql Server) Comercial
(Hoje) C# Python Sql Server e Oracle




Responder