-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
Automated import binary files
Accueil > Community > Automation and VBA > Automated import binary files
- This topic has 3 replies, 2 voices, and was last updated 19 years, 4 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.