Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
They always move the goal-posts, don't they
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028919
Message ID:
01029027
Views:
13
>>Here is a wild idea. If you set a standard for field naming convention that they MUST abide by, then you could go to an XML format and use XMLTOCURSOR() to create your cursor.
>>
>
>Thanks Mark
>
>Something to consider. However, how do I get the import text file to XML format and why?

The XML file would be the file your client creates. After re-reading your dilema, I see that PointX (a 3rd party software?) is creating the text file and probably would not be able to create an XML file for you.

What I have done in the past is create a data mapping table that my app uses to import a txt file with fixed length data. Importing delimited data would work as well also. The meta data in my mapping table lists the "field" in the text file, how long the fixed length is and what position in the file it begins. The last field in the table indicates where the data element goes (i.e., the table and field names). I loop through the records to generate my "CREATE CURSOR" command and use macro expansion to create the cursor to APPEND the text file into.

You could present this meta data to them so they can "make adjustments" based on what they exported to this text file.

I am afraid there just is no magic bullet here unless the first line in the text file is string of field names.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform