Hello all,

I've been away from the list for a while and shifted to Sydney for a job, so
please forgive me if my questions repeat someone.

I'm using D5 on Win 2K.

The function I'm working on at the moment is supposed to export a text file
into Excel . When the text file is too big for one spreadsheet to
accommodate it's content, the function will split the original text file
into the number of files of appropriate size. After this is done it will
export the files created one by one.

The problem I have is:

There is no way I could find out the possible number of text files needed at
design time, thus I can't have a list of variables, one for each file.
I can't have an "array of TextFile" and load it with the files ones they get
created (can't have file types in array - right ?!?! )
When I try to allocate a pointer for each file created and store it in an
array, I get it to point to the same address always, because I only have 1
variable space to point to (right?):

Questions:

How can I have an x number of text files open and dynamically get access to
them as needed?
Can it be done with an array of pointers? If yes, how can I allocate those
pointers for each file?

I'm kind of "stuck" here and will appreciate any help/advise.

Thank you and best regards,
Sergei
        [EMAIL PROTECTED]

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to