Calling a function from another op

I have a python function in a Text DAT that I would like to reuse in other ops (such as a TCP/IP callbacks Text DAT).
How can I call that function from within another DAT?

Do you want to run the whole DAT or just a specific generalized function in that DAT?

You can use the run() method to run a script in a DAT like this:
base_run_a_dat.tox (390 Bytes)

You can treat a text DAT as a module with functions like this:
base_dat_as_module.tox (406 Bytes)

You can also add python extensions as another approach to this challenge. It really comes down to what you’re looking to do.

You could read more about python modules in touch here:
matthewragan.com/2016/07/12/pyt … hdesigner/

and extensions here:
matthewragan.com/2016/07/14/pyt … hdesigner/

Does that help you get started?

Yes, Thank you!
Your base_dat_as_module.tox example worked perfectly for me!