-
FlexPro
- At a Glance
- Features & Options
- Applications
- All Advantages
- What’s New in FlexPro 2021
- Try FlexPro For Free
- FlexPro View OEM Freeware
- Buying Guide
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Products
- News
- Support
- Company
- Contact
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Automated import binary files
Home > Community > Automation and VBA > Automated import binary files
- This topic has 3 replies, 2 voices, and was last updated 19 years, 5 months ago by norbert.bakkers@lr.org.
-
AuthorPosts
-
July 12, 2005 at 1:22 am #12433norbert.bakkers@lr.orgParticipant
I use the following code to import binary files in Flexpro:
ImportSettings.ImportCompleteFile = True
ActiveDatabase.RootFolder.Import FName, “Binary files (*.*)|*.*”
The problem is that it will display the ‘Binary Data Set ‘BinaryDataSet’ Properties’ dialog box.
Is it possible to import binary data in a Flexpro dataset without having any visible dialog box?July 12, 2005 at 2:31 am #8725Bernhard KantzParticipantThere are two possibilities to import binary data files with VBA:
1) Create a FPScript formula using the ReadBinaryFile function.
2) Use the BinaryDataLink object in VBA.Dim oBinaryDataLink As BinaryDataLink Set oBinaryDataLink = ThisDatabase.RootFolder.Add("Demo", fpObjectTypeBinaryDataLink) oBinaryDataLink.FilePath = "...ImportfilterDemoFile.tst" ...
See the FlexPro ImportFilter example.
July 13, 2005 at 12:09 am #8726norbert.bakkers@lr.orgParticipantThanks.
The second option does exactly what I needed.July 13, 2005 at 12:15 am #8114norbert.bakkers@lr.orgParticipantI use the following code to import binary files in Flexpro:
ImportSettings.ImportCompleteFile = True
ActiveDatabase.RootFolder.Import FName, “Binary files (*.*)|*.*”
The problem is that it will display the ‘Binary Data Set ‘BinaryDataSet’ Properties’ dialog box.
Is it possible to import binary data in a Flexpro dataset without having any visible dialog box? -
AuthorPosts
- You must be logged in to reply to this topic.