Re: "Append From" problem
- From: "David Frankenbach" <sendnospam@xxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 09:33:34 -0500
Mark,
> Hmm, I think I'll have to go the "parse it myself" route, because this app
> is
> to install on users machines. Oh for the marvellously wonderful
> associative
> arrays of PHP!
Use an adaptation of the Excel selection.. APPEND FROM TYPE CSV to get all
the non-memos, then reread the file, you can use the AT( FieldBeforeMemo,
lcLine ) and the AT( FieldAfterMemo, lcLine ) to make it easier to grab the
memo data.
You may also be able to
n = alines( laData, filetostr( TheFile.CSV ) ) && if your file is less than
65000 lines. in VFP9 the array size limits have been removed.
But reliably parsing a CSV is tough if there is are commas inside quoted
fields. If you have control over the CSV generation phase you might also use
an altername delimiter string of something like ~!*
--
df - Microsoft MVP FoxPro http://www.geocities.com/df_foxpro
.
- References:
- "Append From" problem
- From: Dummy Newgroup name
- Re: "Append From" problem
- From: Olaf Doschke
- Re: "Append From" problem
- From: Dummy Newgroup name
- Re: "Append From" problem
- From: David Frankenbach
- Re: "Append From" problem
- From: Dummy Newgroup name
- "Append From" problem
- Prev by Date: Re: SQL Select: Very Fast in VFP8, Very Slow in VFP9
- Next by Date: Re: Need some help or idea
- Previous by thread: Re: "Append From" problem
- Next by thread: Re: "Append From" problem
- Index(es):
Relevant Pages
|