Author: Ed Leafe
Posted: 2011-04-15 at 08:11:08
On Apr 14, 2011, at 11:49 PM, Paul McNett wrote:
>> Can I used Python with VFP9?
>
> I do it by "shelling out". IOW, write the email to a file on disk, run your python
> script on that file, which writes the output to another file, and then open the
> output file in VFP.
I worked on an app for a customer that required parsing a lot of irregular text. Regular expressions handled it fine, but using the VB-based control that comes with VFP was very slow. I wrote a routine to do what you describe: write to a temp file, call a Python script that would do the processing and write the output to a different file, then have VFP read in the results and proceed from their. It was amazing how much faster that solution was compared to the "built-in" VB control, even with all that extra shelling.
-- Ed Leafe
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/2AB81A03-99A9-403D-9E5D-C3800D76B05E@leafe.com
** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.