[IronPython] Need a Good Embedded Example

JoeSox joesox at gmail.com
Thu Oct 18 17:45:06 CEST 2007

On 10/18/07, Joshua J. Pearce <joshua.pearce at gmail.com> wrote:
> Joesox,
> Thank you very much! Now, what if I the getcount() method was actually
> getcount(string arg1), is there a way to call it from within the IP script?

I don't see why you would want to if you are using an IronPythonEngine

Just do...
     //Call your Service method and assign return value to a global
     COUNT = myAppService.getcount("my arg1");

> Or do I need to parse the IP script ahead of time, and call the function
> myself? That would be like writing my own scripting language, so I hope
> there is a way to call the method from within IP scripts.

I still don't see why you would need it in the script if you are using C#.
Later, JoeSox

More information about the Ironpython-users mailing list