Importing Tab Delimited Data File


In Panorama 6, I used to import a tab delimited data file into it. In Panorama X, it doesn’t anything with it. I can use that same file and open with Excel with no issue. Any clues?


Importing of TSV files works perfectly, only the commands have slightly changed. Open the Panorama X Help and check the new importtext statement and its options.


Does this mean that you can’t use: File:New:Database from Text File?

In Jim’s original demo of PanoramaX he used that statement to open CSV text file.


I just used File:New:Database from Text File, on a tab delimited file, and it worked as advertised. The file does need to have an extension, such as .txt or .tsv, to be recognized as a text file. Panorama X doesn’t recognize the old type/creator codes.




Interestingly my file is 105 mg in size,File:New:Database from Text File, on a tab delimited file I can seem to get that functionality to work.
In the finder, if I choose open with Panorama it opens without issue at all either .txt or .tsv interesting isn’t it.


Does this mean that you can’t use: File:New:Database from Text File?

No. You naturally can do that manually with menu commands.

But if you have to import such a file every day or this would be only part of a complex workflow, maybe you would enjoy it if a procedure would do that task for you. And when you are going to write such a procedure, you would make use of the statement importusing and its options.


It will make sense to use importusing for the future workflow and I will play with that.

Thanks again


As a point of interest, when you choose File>New>New Database from Text File Panorama actually runs this program internally:

local fileChoice
choosefiledialog fileChoice
if fileChoice = {} rtn endif
importtext binarytotext(fileload(fileChoice)),{ExistingData},{Replace}

Many, in fact perhaps most, of Panorama’s apparently “built-in” menus and tools actually run short programs internally.

Also notice that nowhere does this program explicitly create any database fields. The importtext statement will do this automatically (unless you tell it not to).