Is there way to import a csv or other text file into a project, for example with a long list of parameters exported from other applications.
I need to use some parameters in the code and I don’t want to left them into an external file/db distribuited with the compiled app.
First, drop the file into the navigator.
Then, using the object name, scan its contents.
Ask more if not enough.
I dropped the file into navigator and the file appears as myfile. So I put into App.Open event this code:
dim f as FolderItem = myfile
but debug tell me:
Type mismatch error. Expected class FolderItem, but go string
What’s wrong? How I can refer to the file in the code to scan its content?
Ok. Doing this…
Dim f as FolderItem = GetFolderItem(myfile)
Dim mt() as String = Split(f.name, EndOfLine)
)
the mt() array contains all rows of myfile.
It’s nonsense, but its what I need.
No need to go through a folderItem.
simply use myfile as a string.
Dim mt() as String = Split(myfile, EndOfLine))
[quote=250575:@Michel Bujardet]No need to go through a folderItem.
simply use myfile as a string.
Dim mt() as String = Split(myfile, EndOfLine))
Ok. It works. Thanks
Thank you Michel for completing my answer. I had a meeting and have to go away fast / I knew that I forgot something, but what ?