I want to import data from text files created from List Memory or List Object
in VFP SP1. Is there any tools available for such import?

Thanks

Re: How to import data from text file created from List Memory or Obje by Josh

Josh
Mon Aug 14 15:51:42 CDT 2006

you neglect to say which vfp "sp1" you are using; but that's not really
important.

use low level file i/o or
filetostr() to pull it in; then parse teh result & add it to your table.

On Mon, 14 Aug 2006 11:47:02 -0700, Peter <Peter@discussions.microsoft.com>
wrote:

>I want to import data from text files created from List Memory or List Object
>in VFP SP1. Is there any tools available for such import?
>
>Thanks
>


--- AntiSpam/harvest ---
Remove X's to send email to me.

RE: How to import data from text file created from List Memory or Obje by BoudewijnLutgerink

BoudewijnLutgerink
Tue Aug 15 00:48:02 CDT 2006

There is, it's called Visual FoxPro, does that ring a bell? (LOL)
You can actually read the memo directly line by line with filetostr() function
like in:
set memowidth to 2048
list memory to cMemory.txt
cStr = FILETOSTR("cmemory.txt")

Then create an array like: ALINES(laLinesToRead, cStr)

Read the array line by line like:
ln = 28
clear
?SUBSTR(laLinesToRead(ln),1,63)
?SUBSTR(laLinesToRead(ln),64,3)
?SUBSTR(laLinesToRead(ln),100,1)
?SUBSTR(laLinesToRead(ln),115)

--
If it ain't a border collie, it's just a dog

"Peter" wrote:

> I want to import data from text files created from List Memory or List Object
> in VFP SP1. Is there any tools available for such import?
>
> Thanks
>
>