.NET Scripting - Dynamic Languages Support Functions

Mar 16, 2009

Can anyone provide an example of .NET scripting? Some dynamic languages support functions like eval() or compile() than let you compile and execute a string in run-time. VBCodeProvider seems to be a related namespace, but i can't find an example showing how to compile and execute code. Edit: I'm developing a ASP.NET site using VB.NET. Some behavior need to be dynamic and scripted.

View 8 Replies


ADVERTISEMENT

Add Some Scripting Support To .NET-application

Jun 21, 2010

I would like to add some scripting support to my .NET-application (I usually code in VB.NET). Since VisualStudio 2008 won't let me use VSA to get scripting support, and the Windows ScriptControl crashes in 64-bit mode, I have been looking for an alternative solution to my problem.I would really like to be able to code the scripts in VBScript or VB.NET, because of the simple syntax.Would it be possible to implement some kind of sandbox inside my application to make it run a VB.NET application inside itself? Or is there any simpler way of getting scripting support?

View 2 Replies

Way To Implement OO Scripting Support For An Application?

Feb 28, 2010

I have to implement OO scripting in VBS/JS, wondering what's the best way to do that.he scripting engine has to be able to create new methods for existing object in the application and allow calling the methods in other existing objects.

View 4 Replies

Multilingual - Good Examples Of Support Different Languages

Jun 18, 2010

Trying find some good examples of support different languages in VB.NET. I've read sites on System.Globalization and resource files but none explain fully how to implement them in my application.

What happens to the form title, msgbox strings etc. How do I make these multilingual?

View 2 Replies

C# - .NET Languages The Mainstream Languages For Windows (standalone) Applications?

Jun 24, 2010

I'm an inquisitive .NET student without any commercial working knowledge and I have been puzzled by what exactlty are .NET languages meant for? Q1.If you look on job websites, .NET seems mainly used for web applications, not much for Windows applications? (My dream job is to develop standalone small Windows applications.)

[Code]...

View 11 Replies

Case-sensitive Languages Vs Insensitive Languages?

Nov 27, 2010

visual basic.net is case insensitive so it allows the coder to write without caring or remembering the casing of variables. it also relieves from the 'undeclared variable' errors if you use the variable in another case than the one used in declaration. The fact that its line termination is a line feed makes it even more readable unlike C# or c++ that need good care in the casing and contineous war with following up with the {}, matching them and figuring out which is for which.my question is what are the advantages of c# over vb knowing that both get compiled to MSIL so there is almost no performance difference between the two languages?

View 1 Replies

Datagridview With Dynamic Range And Calculating Statistical Functions?

Dec 20, 2010

I have a timer, a textbox and a datagridview with 10 columns. I am running a timmer code (you can see below) and generating randomizes numbers to textbox. Then I am putting distributing this numbers to datagridview. i want to define a dynamic range. This range is important when I am calculating the some statistical function. This range will be used as a calculation period. I want to calculate MAX, MIN, MEDIAN, MODE of the data, written in the first column, in second, third fourth and fifth columns My datagridview is like this and I am trying to calculate MovingAverage, MAX, MIN,MODE and MEDIAN for last 5 data dynamicly!

ID Time
Data1 Mov
Max Min
Mode Median

[code]....

View 4 Replies

VS 2008 : Have A Class Where The Functions Of The Same Name Are Both Instance Functions And Shared Functions?

Dec 6, 2010

What I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.

Public Shared Function Get...(byval xx as xx)

and

Public Function Get...

The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).

View 1 Replies

If Compile A VB6 App On Win7 - ADODB.Connection Errors With "Class Does Not Support Automation Or Does Not Support Expected Interface"

Apr 28, 2011

I compiled some VB6 code on my Win7 x64 machine and the result .exe will not run correctly on any other machine. VB6 code is just a new template .exe file with one button, a reference to "Microsoft ActiveX Data Objects 2.6 Library" and the following code in the button press event: Dim db Set db = New ADODB.Connection It runs correctly on my machine, but no others (even other Win7 x64 machines) (Update: I found TWO other users where it runs and one of them is Jeff Atwood!, but most machines have the same problem)

[Code]...

View 2 Replies

Excel Maths Functions And Calls To All DLL Functions Documentation?

Jan 29, 2007

1) Is it possible to access the Excel mathematical functions without actually opening Excel?

I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?

2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?

Or for all those that Microsoft have chosen to document online at least.

View 1 Replies

.NET Counterpart For The Scripting.DLL.

Oct 14, 2011

We are converting a VB6 project to VB.net 2005. The VB6 project used Interop.Scripting.Dll reference.

We do not want to use this Interop.Scripting.Dll in our VB.Net project. find the .Net Counterpart of Scripting.Dll so that we do not require to build our .Net project with the old scripting dll reference?

We are using Scripting.FileSystemObject and Scripting.TextStream of Interop.Scripting.Dll. What is the equivalent .net counterpart of these objects in VB.Net 2005.?

View 1 Replies

Brand New To VB, And Scripting

Jun 3, 2011

Im brand new to VB and almost completely new to scripting.Where could I find a list of the most basic and useful commands with explanations, or even just like a dictionary of commands in VB?

Also, (this is a painfully easy question but searches haven't come up with any useful results) how do you make something happen if a button is clicked... Ill explain.

Ive made my first app - the picture viewer - and am currently expanding it. So far I have added a full-screen function with,[code...]

Now how do I make it Close full screen when that button has been clicked? Ive been playing around with it for a while but cant figure it out.

View 2 Replies

Checbox Adding By Scripting

Nov 10, 2011

I'm using visual studio 2008. I have searched the google upside down, but could not find anything... I guess i'm not typing it correctly.

My question is: How do I add checkboxes through scripting in vb. Instead adding them through toolbox. So when a new file is found, It will create checkbox automatically.

View 2 Replies

Creating Own Scripting Language?

Feb 9, 2010

Is there a way to create my own scripting language. I don't have any details on what I want to do because it's way too complex,

View 8 Replies

Login Scripting In VB 2005?

Jun 22, 2010

I'm trying to write the code to add users to sql 2005 backend server, and a windows login form. so that certain area's of my program have restricted access.

View 2 Replies

VBScript Or Powershell Scripting

Jun 4, 2012

I took the dive into learning VBScript due to some server side scripts that I work with. During a course I ran into Powershell and did some Google searching. From what I was reading, VBScript is good for legacy applications and Powershell is the way to go for Win7. I did not run into anything telling me of this being true or if its a false statement and VBScript will be used for Win7 and Win8. Should I look into learning Powershell and abort my VBScript for now and just worry about VBScript for legacy systems?

View 1 Replies

C# :: Scripting Auto-mation Within Application?

Dec 30, 2009

The software company I work for offers data conversion as a service for new clients who have previously used other similar software. I've written a VB.NET application to automate common conversion operations, and have separate logic between known vendors.particular file layout has become rather common, but due to the nature of how this particular competitor's application stores information, certain fields mean one thing for one client, and another for a different client.Certain elements within this vendor's format change every time, so I've written the application to account for that. Because some data fields mean different things to different vendors, I have to change my mapping code every time. This wasn't an issue when I had one of these every six months or so, but these are becoming much more common and I would much rather find a way to further automate this process.

View 2 Replies

Make A Scripting Engine In Program?

May 20, 2009

Would it be difficult to make a scripting engine in VB.Net? Just a simple scripting engine for a simple game creating program.

View 2 Replies

Register Assembly (RegAsm.exe) & Scripting

Oct 11, 2011

[URL]

I need to register my class library using the regasm.exe distributed with .Net on user's computers. I have a need to script this so that a command file can be ran to do this.

Question: As multiple versions of this program are on the user's computers, one for each version of .Net, I presume I would want to run the latest version installed. Also, considering that on most of the machines we are talking Windows 7, there is a Framework & Framework64 parent folder. I presume I'd want to use the Framework64 version on Windows 7, no? Are there any inherant environment variables I can make use of rather than hard coding a path in a command file to call RegAsm.exe?

For example, on my computer:

C:WindowsMicrosoft.NetFramework
v1.0.3705
v1.1.4322
[Code].....

Underneath each of these version RegAsm.exe resides. Ideally which should I make use of (Does it matter?) and is there, say something like: %regasm% variable I can make use of?

View 6 Replies

Scripting Is Interfering With Main Application?

May 19, 2009

Ok this is how it is, I have my main app form, and from there I open another seperate form for scripting, but they are both open at the same time, when I run a script from the scripting form, it interfers with the main window form code that's running, I'm guessing they are both running in the same thread or whatever, how do I fix it? I've tried using thread commands but obviously it's not working,

View 1 Replies

Scripting Options For Webbrowser Control

Feb 22, 2012

I was wondering i have some vbscript code that im executing in an html document using webbrowser.document.scriptinvoke and pass it the name of my vbscript sub but I have a script i paste into a vbs file and it runs all the way through fine what settings can i change for webbrowser control to get it to work correctly?

[Code]...

View 2 Replies

Add Scripting Capabilities To Windows Forms Application?

Dec 8, 2010

I want to allow the user to write a little script (JScript, VB, whatever) with a function called by my application that returns an XmlDocument object (a string would be ok).I did some research, and it looks like the scripting engines are obsolete.

The best solution I could find is here: [URL]..But I was wondering if there is a better and more "official" way.

View 7 Replies

Embed Ruby As A Scripting Language Into An Application?

Sep 10, 2009

I would like you all to give me some links about embeding scripting languages and I would like to ask if it is possible to embed Ruby into a Vb.net application. I only know Vb.net c# and ruby and would prefer not to have to learn c/c++ (even though i probably will have to in the very far future).

View 3 Replies

Scripting Error - Using An Application Provided By A Third Party ?

Jul 31, 2010

We are using an application provided by a third party. We applied their hotfix and are now receiving the error below. So far they haven't been able to provide us with a solution/answer as to why this is happening and how to fix it. They say we are the first customers with this problem.

Compilation Error Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30560: 'FileSystemObject' is ambiguous in the namespace 'Scripting'.

Source Error:

CODE:

View 1 Replies

User Defined Scripting - Keep Getting Errors When I Try Load My App?

Apr 29, 2009

I'm trying to add VBScript to my app, I've followed the guide here: http:[url].....But I keep getting errors when I try load my app, heres some of what I have so far:

Public Shared Function VBScript()
Dim ScriptControlClass As ScriptControl = New MSScriptControl.ScriptControlClass
ScriptControlClass.Language = "VBScript"[code]......

View 14 Replies

VS 2008 Disable Active Scripting In A Web Browser?

Nov 8, 2011

What VB code do you use to disable active scripting in a web browser? I've been getting web browser errors that been halting my script. When I disable the active scripting in IE8, everything works fine. I'd like to do this using a VB code and not using IE8.

View 9 Replies

.net - Automation Scripting Tool Boston Workstation Alternatives

Dec 14, 2011

I been using Boston workstation for a project but the version i have is about 8 years old and it only works with terminal not GUI apps. what alternatives are out there for automation scripting Gui apps in visual studio.

View 2 Replies

3rd Party Scripting Editors As Controls In Custom Project?

Sep 4, 2009

Are there any third-party scripting editors that are available as controls (DLLs) for custom projects? I am interested in knowing what is out there and what scripts are provided?

View 1 Replies

Application Provided By A Third Party Facing A Scripting Error?

Jul 31, 2010

We are using an application provided by a third party. We applied their hotfix and are now receiving the error below. So far they haven't been able to provide us with a solution/answer as to why this is happening and how to fix it. They say we are the first customers with this problem.

I thought maybe the .net forum here will be able to guide me on how to solve the scripting error.

[code]...

View 2 Replies

C# - Specify The Date Format Used With SQLServer Management Object Scripting?

Jun 17, 2009

When I'm generating my database scripts for my project I'd like to manage the date format that is used in the comments in the SQLScript.I have my regional settings set to Australian format, but they seem to be disregarded.

[Code]...

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved