when I compile with harbour give me an error on this line
AAdd( ::aLinea[k], ::GetCode(ALLTRIM( ::aTextLinea[k][nI] ) ) )
why ?
DATA aTextLinea AS ARRAY INIT {}
::aTextLinea := Array(::nLedLines)
METHOD CheckLines() CLASS TLed
Local nI,k
::aLinea:=array(LEN(::aTextLinea))
For j=1 to LEN(::aTextLinea)
::aLinea[j]:={}
next
For k=1 To len(::aLinea)
For nI := 1 to ::nLedCharacters
IF ni <= LEN( ::aTextLinea[k] )
AAdd( ::aLinea[k], ::GetCode(ALLTRIM( ::aTextLinea[k][nI] ) ) )
ELSE
AAdd( ::aLinea[k], ::GetCode( " " ) )
ENDIF
Next
Next
RETURN NIL
METHOD CheckLines() CLASS TLed
Local nI,k,j
::aLinea:=array(LEN(::aTextLinea))
For j=1 to LEN(::aTextLinea)
::aLinea[j]:={}
next
For k=1 To len(::aLinea)
For nI = 1 to ::nLedCharacters
IF ni <= LEN( ::aTextLinea[k] )
AAdd( ::aLinea[k], ::GetCode(ALLTRIM( ::aTextLinea[k][nI] ) ) )
ELSE
AAdd( ::aLinea[k], ::GetCode( " " ) )
ENDIF
Next
Next
RETURN NIL
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 110 guests