Greetings,

Allow me to clarify:

  1. DataStation is read (for input) only
  2. ftFixedLength denotes is the filetype to be parsed by DataStation  

D.Open_(filename As String, filetype As enumFileType, Optional ConfigurationModel as String)

Where filetype can be:

ftDelimited for Delimited files

            ftFixedLength for files with Fixed Length Fields

            ftXML for XML files

            and so on

 

  1. In order to have multiple files open – do the following:

 

Within Tools (VBA), BasBss6 (VB6) module declare additional DataStation objects – one for each file

i.e.

E as DataStation, F as DataStation

 

Note the DataStation generates code using the default object name of D – modify the generated code appropriately.

 

Set D = New DataStation

Set E = New DataStation

open file 1

D.Open “fixed1.txt”, ftFixedLength

open file 2

E.Open “fixed2.txt”, ftFixedLength

 

Please feel free to contact me if any of the above is unclear!

 

Regards,

Thom

 

Thom C. Blackwell

Boston Software Systems

www.bostonworkstation.com

866 653-5105

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lew Hundley
Sent:
Wednesday, December 10, 2003 1:07 PM
To: [EMAIL PROTECTED]
Subject: [Talk] BWS question for Meditech C/S

 

If I want to write a loop for a Meditech Magic script to look for EOF, I do something like this

 

While Not EOF(1)

 

Where 1 was used to open the file

 

Open FileName As #1

 

and is a unique identifier of the file (you don’t have two files open at the same time as 1)

 

Now, in C/S I need to write a loop using the new DataStation, so the code generated by BWS is

 

D.Open_ “C:\SOMEFILE” , ftFixedLength

 

where ftFixedLength is system defined as the number 2. Assuming the same logic is used for the While

 

While Not EOF(ftFixedLength)

 

doesn’t this mean that if I wanted to have 2 fixed length files open at the same time (say, transferring data to two file at the same time, that I would have to change the tool-generated ftFixedLength of the second file that I want to open to some other number?

 

I just want to clarify that I understand the use of ftFixedLength in the D.Open_ statement, since both files could be fixed length files, but the number has to be unique. This may be a stupid question, but I just want to be sure that I understand.

TKs for indulging me,

Lew Hundley
Information Specialist - Programmer
Silverton Hospital
Silverton
Oregon
503.873.1657
[EMAIL PROTECTED]

 

Reply via email to