Hi,
I repeatedly open a certain file type, which needs special import settings to opening correctly.
I would like to be able to write these import settings in a short compact form. For instance:
dt=open("fileref",import settings("string_that_parses_correctly");
where "string_that_parses_correctly" is the whole string, that holds the settings' conditions. In my case I use:
"string_that_parses_correctly"=
"End Of Line( CRLF, CR, LF ),
End Of Field( Tab ),
Strip Quotes( 1 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Treat empty columns as numeric( 0 ),
Labels( 1 ),
Column Names Start( 1 ),
Data Starts( 2 ),
Lines To Read( All ),
Year Rule( "20xx")"
I captured these settings from the script generated by opening one of these files.
So is there a way to define a string, for instance as a global variable, that always is set, so that I can use it when opening the file as shown.
I hope it makes sense.
Regards
Poul Ravn Sørensen