Is there a way how to achieve the same results as a dataport but through a form? What I mean is having the option to search in the harddisk for the file to import/export?
But now it is giving me the following error "The operating system cannot find the drive and directory specified for the file". What I need is to import a csv file and fill in a table which before was being carried out by a dataport.
[The use of [SOLVED] in the Topic Title is no longer supported. Please edit the first message in the thread and use the field Attribute (below the Subject-field) to put a green checkmark next to the Topic Title]
Answers
Regards
Thanks for your immediate reply. By any chance do you know of a form or a dataport from which I can have a look at how this coduenit has been used?
Regards
Regards
In the OnAssistEdit trigger of the textbox filename:
The following worked properly
FileName := CommonDialogMgt.OpenFile(Text006,'',2,'',0);
But now it is giving me the following error "The operating system cannot find the drive and directory specified for the file". What I need is to import a csv file and fill in a table which before was being carried out by a dataport.
Do you think you can help me on this?
Regards
http://www.BiloBeauty.com
http://www.autismspeaks.org
Editing CDU 412:
Created text constant with extension .csv and coding added an option to the default file types
Form
Using the above given code & adding the CurrDataport.Filename := ImportFileName;
where ImportFileName is a user created variable to store the file name
Regards & Thanks to all for the help