On Jan 14, 2008, at 6:25 AM, Malcolm Greene wrote:

> Does Python/Dabo support VFP-like text/endtext or textmerge
> capabilities?

        Yes and no. Yes, you can do just about anything that VFP can do; no,  
it doesn't work at all like VFP does. Basically, you create a  
StringIO instance and redirect stdout to it; then you just issue  
'print' statements, and it all goes there.

> I understand that Python supports an eval() capability and that an
> execscript() capability could easily be implemented by simply  
> saving the
> source to a temp file and having the Python engine interpret the temp
> file.

        Python has eval(), exec(), execfile(), compile(), and all that.  
There are probably many other ways that are much better solutions to  
the problem of dynamic execution, though, and I sense an overall  
theme in your questions that indicate that you are trying for a 1:1  
correspondence between VFP and Python/Dabo. I would advise you to  
focus instead on exploring Python, googling for topics and seeing how  
it's commonly approached there. Just because VFP is the most familiar  
approach doesn't mean it's always the best.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
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/[EMAIL PROTECTED]
** 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.

Reply via email to