import into an array.

Jose Lerebours fpgroups at gmail.com
Mon Nov 1 08:14:09 PDT 2010


On Mon, Nov 1, 2010 at 10:45 AM, Kroboth, Joe <joe_kroboth at chernay.com> wrote:
> I'm working on some import routines and was wondering if there anyway using the import command to load the row directly into an array? Or am I forced to assign each field manually?
>
> Thanks.

filePro is a single depth/dimensional array.  You cannot import a line
and have the columns within that line read as subs to the array
element line(0)(0) or line(0)(1) ...  You need to:
- define your array as  dim array(####) for each column you intend to import
- use import  to read file and populate your arrays

That being said, you can write code to simply load the file onto a
single element array and when needed, explode the content to retrieve
the column value ...

Regards,


Jose Lerebours


More information about the Filepro-list mailing list