.NET assembly equivalent to the MS Script Control 1.0. COM

NtgNtg Member Posts: 5
Hello, does anybody know if there is a .NET assembly equivalent to the MS Script Control 1.0. COM component?

I need to map the ScriptControl.Language and ScriptControl.Eval methods to any equivalent .NET methods.

CREATE(MSScriptControl,FALSE,TRUE) ;
MSScriptControl.Language('VBScript');
vResult := MSScriptControl.Eval(Formula);

I am converting a client from NAV 2009 using the same control to NAV 2016 and objects compile, but they fail when CREATE

Answers

  • EvREvR Member Posts: 178
    Don't even bother and just rewrite your logic in c# or using .net assemblies directly in c/al.
  • NtgNtg Member Posts: 5
    This was my idea to apply .net assemby directly in c/al...The question is which? Till now I couldn't find what to use
  • NavNabNavNab Member Posts: 181
    Ntg wrote: »
    objects compile, but they fail when CREATE


    Hi,

    You may just need to set property RunOnClient of your variable to Yes
  • NtgNtg Member Posts: 5
    edited 2017-06-07
    Ntg wrote: »
    objects compile, but they fail when CREATE


    Hi,

    You may just need to set property RunOnClient of your variable to Yes


    The variable is automate, not dotnet. I want to change it to dotnet, but don't know which dotnet assembly to use.
  • NavNabNavNab Member Posts: 181
    I see. I also tried to find it by without any helpful result.
    I believe you will need to recode your logic (maybe using JavaScript).
    Maybe it is time to change the old habits (forget automations :p) :wink:
Sign In or Register to comment.