Subscribe to this thread
Home - General / All posts - C# function access
Sloots

678 post(s)
#26-Jan-23 19:50

I have a query that uses a C# function. This function is located in a script component and the query has a reference to the function. This works as expected. But now I am trying to run the same query from a C# program. This is also working as long as the script component and the reference to the script exists. But I want to get rid of the script component / can not rely on the existence of the script.

My question is, can I include the function in the script somewhere in my C# code? And where would I put that code?

Hopefully this question is clearly stated and it makes sense to someone.

Chris


http://www.mppng.nl/manifold/pointlabeler

Sloots

678 post(s)
#27-Jan-23 13:17

I succeeded by putting the function in a dll and reference that!


http://www.mppng.nl/manifold/pointlabeler

adamw


10,447 post(s)
#06-Feb-23 11:47

Happy to see you solved the issue.

We have been considering adding $include$ to scripts, similarly to queries. This would also have worked.

Manifold User Community Use Agreement Copyright (C) 2007-2021 Manifold Software Limited. All rights reserved.