PUBLIC nnn := 1
PUBLIC iii := 1
PUBLIC cCodeblock
PUBLIC aRows[ 20 ] [ 3 ]
FUNCTION DoMakeReport( aStructur )
...
FOR nnn := 1 TO nnnMax
cCodeblock := "{|| aRows[iii] [" + STR( nnn ) + "] }"
BEGIN TEXT
EXPRESSION EVAL( &cCodeblock )
i want to use it for SQL-Result where i have Structure ( like DbStruct() )
serge_girard wrote: ↑Fri Feb 11, 2022 3:15 pm
did you try with CRLF to split a long line?
i don´t have a Idee how to use ";" to "Split" Line when work in Loop to "add" FIELD Value to String
i know, when "Add", where i have to "split", but how to put a "second" line with BEGIN TEXT / END TEXT in REPORT
LOCAL nnnMax := LEN( ::aBroFields )
...
FOR ID_nnn := 1 TO nnnMax
...
if nSumLenField > nMaxPageWide
// might be recursive when very long line
New_cCodeblock := SUBSTR(ID_cCodeblock,nLastStart,nMaxPageWide)
// how to put this to NEXT line ?
BEGIN TEXT
EXPRESSION EVAL( &New_cCodeblock )
...
ENDBLOCK
ELSE
BEGIN TEXT
EXPRESSION EVAL( &ID_cCodeblock )
...
ENDBLOCK
ENDIF
i don´t know if it is possible to use a Way like this
serge_girard wrote: ↑Sat Feb 12, 2022 1:50 pm
Splitting lines will result in adding a new aRows and changing the original.... this a bit more compex but do-able!
AHA ...
so i need "split" Data when "fill" Array before call Report