Hello,
I want to create a Array from numeric values of a Text-file
That makes it possible, to save and restore multiselected records from xBrowse
but getting a error :
Selected Records saved to a Textfile :

Best Regards
Uwe
I want to create a Array from numeric values of a Text-file
That makes it possible, to save and restore multiselected records from xBrowse
but getting a error :
Selected Records saved to a Textfile :

FUNCTION SAVE_MULTI( oBrw )
LOCAL cArray := "", aSelRec := oBrw:aSelected // xBrowse-array with multiselected records
I := 1
FOR I := 1 TO LEN( aSelRec )
  cArray+= ALLTRIM(STR(aSelRec[I])) + CRLF
NEXT
MEMOWRIT( "cFile1.txt", cArray )
RETURN NIL
//----- rebuild the multiselected xBrowse-array -------------
FUNCTION READ_MULTI( cText, oBrw )
LOCAL aLines := {}, n
FOR n = 1 to MlCount( cText )
  AAdd( aLines, &( '{ || "' + MemoLine( cText, 3, n ) + '" }' ) )
NEXT
RETURN aLinesBest Regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.