- Code: Select all Expand view
#INCLUDE "fivewin.ch"
FUNCTION Main()
LOCAL oDlg
LOCAL aText := { "Text1" , "Text2" }
LOCAL i := 0
SetDlgGradient( { { 1, RGB( 199, 216, 237 ), RGB( 237, 242, 248 ) } } )
DEFINE DIALOG oDlg TITLE "Test" SIZE 200,400
FOR i = 1 to LEN( aText )
@ i*15, 5 SAY aText[ i ] OF oDlg PIXEL
NEXT
ACTIVATE DIALOG oDlg CENTER
RETURN NIL
Error description: Error BASE/1132 Bound error: array access
Args:
[ 1] = A { ... }
[ 2] = N 3
Stack Calls
===========
Called from: brisi.prg => (b)MAIN( 14 )
Called from: .\source\classes\SAY.PRG => (b)TSAY:TSAY( 51 )
Called from: => TSAY:REFRESH( 0 )
Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW:TWINDOW( 566 )
Called from: => TSAY:SETBRUSH( 0 )
Called from: .\source\classes\CONTROL.PRG => TCONTROL:INITIATE( 417 )
Called from: .\source\classes\SAY.PRG => TSAY:INITIATE( 196 )
Called from: => __OBJSENDMSG( 0 )
Called from: => HB_EXECFROMARRAY( 0 )
Called from: .\source\function\HARBOUR.PRG => OSEND( 279 )
Called from: => HB_EXECFROMARRAY( 0 )
Called from: .\source\function\HARBOUR.PRG => ASEND( 257 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 631 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 871 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 270 )
Called from: brisi.prg => MAIN( 18 )
IF comment line
// SetDlgGradient( { { 1, RGB( 199, 216, 237 ), RGB( 237, 242, 248 ) } } )
program work ok
Any idea ?
Best regards,