Hi All,
I'm getting "string too long to fir error" when I do this code:
FOR i = 1 TO THISFORM.List1.LISTCOUNT
IF THISFORM.List1.SELECTED(i)
lcMessage = lcMessage + THISFORM.List1.LIST(i) + CHR(13)
IF !EMPTY(lcMessage)
xcount=xcount+1
ENDIF
ENDIF
NEXT
cThisFileStr=''
cOutputFileStr = ""
FOR i = 1 TO THISFORM.List1.LISTCOUNT
IF THISFORM.List1.SELECTED(i)
cThisFileStr = FILETOSTR(THISFORM.List1.LIST(i))
cOutputFileStr = cOutputFileStr + cThisFileStr &&MERGE
ENDIF
NEXT
cOutputFile = "weektodo.csv"
=STRTOFILE(cOutputFileStr,cOutputFile) && get error here when it creates output file.
The files I am merging are pretty large (which is what I'm guesing is the problem), but I thought the cOutputFileStr = cOutputFileStr + cThisFileStr would have helped. it did not.
Is there anything that can be done to remedy this?
Please help.
Thanks,
FOXUP
I'm getting "string too long to fir error" when I do this code:
FOR i = 1 TO THISFORM.List1.LISTCOUNT
IF THISFORM.List1.SELECTED(i)
lcMessage = lcMessage + THISFORM.List1.LIST(i) + CHR(13)
IF !EMPTY(lcMessage)
xcount=xcount+1
ENDIF
ENDIF
NEXT
cThisFileStr=''
cOutputFileStr = ""
FOR i = 1 TO THISFORM.List1.LISTCOUNT
IF THISFORM.List1.SELECTED(i)
cThisFileStr = FILETOSTR(THISFORM.List1.LIST(i))
cOutputFileStr = cOutputFileStr + cThisFileStr &&MERGE
ENDIF
NEXT
cOutputFile = "weektodo.csv"
=STRTOFILE(cOutputFileStr,cOutputFile) && get error here when it creates output file.
The files I am merging are pretty large (which is what I'm guesing is the problem), but I thought the cOutputFileStr = cOutputFileStr + cThisFileStr would have helped. it did not.
Is there anything that can be done to remedy this?
Please help.
Thanks,
FOXUP