Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Import wizard
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00388604
Message ID:
00388724
Views:
9
>>I need to build an "import data file" option to my name/address table. I don't have control of the field layout of the incomming txt file. Wondering if there are any prebuilt "text file parser/field mapper" widgets like what excel has.
>>
>>Desc of app: http://fox.wikis.com/wc.dll?wiki~ConferCarl~VFP
>
>Carl, I've had considerable success using a third-party product called Data Junction; it's probably overkill for this application.
>
>I'd consider writing something based on having the user provide a record on-screen, and then assign record segments to existing fields. You could then construct an appropriate intermediate cursor with field names matching the real names in your name/address table, and synthesizing garbage names to absorb fields that have no direct correspondence. Once this cursor is created, you would use it to do an APPEND FROM source file TYPE whatever, and then APPEND that file to your name/address file; VFP will match fields by field name, so order, excess fields or missing fields would not be an issue.
>
>Depending on the nature of the input file, you may need a more robust parser than APPEND FROM; you can create a much stronger parser using the VBScript.RegExp regular expression COM object.

I have used DataJuction too, and your right, it is a great app. But not only is it overkill, I need something more integrated, and royalty free. My app will be resold.

I was hoping that someone had allready written like you describe. I guess if you are not aware of it, it isn't out there ;) - You seam to be very on top of whats avalible.

I don't think the option will be used more than 20 times a year, so developing it wouldn't be cost effective. It will be cheaper and more "customer service orianted" to just send the datafile to the tech, and he can convert it into a dbf and send it back.

I think I will just have 3 options: dbf, sdf and comma delimited. I will use the same format as the app's export produces.

Thanks anyway.
Previous
Reply
Map
View

Click here to load this message in the networking platform