Error in array index

This forum is for eXpress++ general support.
Post Reply
Message
Author
MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Error in array index

#1 Post by MIGUELON »

Hi all, I get this error at random to run my program in the first DCREAD.

Someone can give me a clue as to why it occurs.
I accept any suggestion

The versions I use are Alaska Xbase + + 1.90.355 and eXPress + + 253

Error BASE/1012
Descripci¢n : Error in array index
Operaci¢n : :HandleEvent
Thread ID : 1
Llamado desde DC_GETLIST:EVENTLOOP(4079)
Llamado desde DC_GETLIST:READGUI(3394)
Llamado desde DC_READGUI(83)
Llamado desde MAIN(1863)

Thank you very much
MIguel

skiman
Posts: 1186
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Error in array index

#2 Post by skiman »

Hi,

A sample of your source would help.

I don't know if you have declared getlist?
Best regards,

Chris.
www.aboservice.be

MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Re: Error in array index

#3 Post by MIGUELON »

Thank you for your help.
If I have said and as I asked getlist sent a sample of the code.
It is the main DCRE
But it seems that the error is eXpress + + code

Regards
Miguel


local GetList:=[0], GetOptions

DCGETOPTIONS ;
NOBUSY ;
WINDOWHEIGHT nWindowHeight ;
WINDOWWIDTH nWindowWidth ;
color {202,228,230} ;
bitmap fondo ;
AUTOWINDOWMENU ;
ABORTQUERY MSG {||iif(Alemas({"Silex Inform tica le agradece la ulilizaci¢n de su software",;
" y le recomienda realizar copias de seguridad con regularidad.",;
" ","¨Desea salir del programa SilCM?"})=NO,.F.,.t. )};
CLOSEQUERY MSG {||iif(Alemas({"Silex Inform tica le agradece la ulilizaci¢n de su software",;
" y le recomienda realizar copias de seguridad con regularidad.",;
" ","¨Desea salir del programa SilCM?"})=NO,.F.,.t. )};
EVAL {|o|SetAppWindow(o)}


DCREAD GUI ;
TITLE 'SilCM '+cVersionSilex ;
PARENT @oAppWindow;
OPTIONS GetOptions ;
EVAL {|o|o:SetFrameState(XBPDLG_FRAMESTAT_MAXIMIZED),; // Para que la ventana esté maximizada por defecto
M->PuGetlist:=GetList,;
USUARIO(.f.,@oSay03,.T.,@oSay01),;
oSay02:setcaption("Pan:"+padl(M->PERPAR,2)+" Mot: "+Sil_Leeini("ADS.INI","SETTINGS","ADS_SERVER_TYPE","1")),;
oSay03:setCaption(M->nombreusu),;
M->oVentanaXmain:=oAppWindow:drawingArea,;
ProgramasIniciales()}

skiman
Posts: 1186
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: Error in array index

#4 Post by skiman »

Hi,

I would start to try with a simple dcread without getoptions and without EVAL.
Best regards,

Chris.
www.aboservice.be

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: Error in array index

#5 Post by Cliff Wiernik »

Should Getlist := [0] be

GetList[0] or Getlist := {}

I cannot get the above to compile.

MIGUELON
Posts: 135
Joined: Wed Feb 10, 2010 10:55 am

Re: Error in array index

#6 Post by MIGUELON »

Thank you for your comment but the original is well defined code:

local nSegundosAnteriores:=0,GetList[0],GetOptions,oDlg,oSay1,oSay2


This is not the problem.
I was wrong to write the sample code.

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Error in array index

#7 Post by rdonnay »

I have never seen this error before.
I don't have enough information to figure this out for you.

Any chance that you can provide a sample program that I can compile and run?
The eXpress train is coming - and it has more cars.

Post Reply