.NET equivalent to VBA?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a .NET equivalent to VBA or should I use VBA
Our application allows user to define a "script" on how a telephone call should be taken. There are some built in functions that the user can call from the "script" but I would like to build in the facility to define their own code that can access the .NET classes

Does anyone have any suggestion on the best way to achieve this

Thanks in advance
Chris.
 
Hi Chis,

See this the same as converting from VB6.

VBA looks as VB.net, but it is not. However that does not mean, that you can
not paste your VBA code in a "Module" and try it.

I have a maybe strange way to make a module, maybe it helps you also.
Because of that with an empty project not all references are set, I open for
a module a windows form project.

In the code I delete everything.

Than I start making the module with

Public Module my module.
Public sub Main
end sub
end module

And than I set in the projectproperties using the solution explorer the
startup project to sub main.

I hope this helps?

Cor
 
Hi Cor

I think you got the wrong end of the stick. Or may be I didn’t explain myself very well

My application allows the user to define a "script" which is basically a set of commands (e.g. Enter Post Code, Enter Name, Enter Address etc. this displays text boxes on a form for entry) stored in a table in the back end SQL database. I would like to VBA enable my application (if these are the right words) so that the user could add their own code (dangerous I know but try telling my manager that, or may be it is a good idea I don’t know). Once say the post code has been entered their code would be executed which could perform some validation or whatever they want to do

Chris.
 
* "=?Utf-8?B?Q2hyaXMgUG9kbW9yZQ==?= said:
Is there a .NET equivalent to VBA or should I use VBA?

There is no equivalent. You can still use VBA, or you can use .NET for
Office 2003 System.
Our application allows user to define a "script" on how a telephone
call should be taken. There are some built in functions that the user
can call from the "script" but I would like to build in the facility to
define their own code that can access the .NET classes.

Inside your application?

<URL:http://www.codeproject.com/csharp/livecodedotnet.asp> [C#]
<URL:http://dotnet.mvps.org/dotnet/samples/miscsamples/downloads/DotNetCompiler.zip>

<URL:http://www.codeproject.com/useritems/evaluator.asp>
<URL:http://www.codeproject.com/csharp/livecodedotnet.asp>

If you have a DevX account:

<URL:http://www.devx.com/codemag/Article/10352/0/page/1/>
 
Back
Top