473,325 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

VBScript functionality in C# application

Hi,
Currently we are developing a C# application which does some standard
validations (datatype/range/min lengh/max length etc.) on the form data.
We are planning to provide a VB scripting feature, so that the user can
specify his own validation for the form data.

The system requirement is , on clicking the script button, it will launch a
form with a editbox wherein the user will enter the VB script.
a)The system should validate whether the entered VBScript code is valid or
not
b)Pass the parameters from c# to the VBScript parameters.
c)Execute the VBscript created by the user
d)Fetch the return value and assign it back to the C# variable.

Have you developed any such Scripting feature?
Can you provide some know-hows?

Thanx.

Regards,
R.Balaji
Nov 15 '05 #1
4 12841
You can use the Microsoft Script Control via COM - Interop.

GP

"R.Balaji" <rb********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
Hi,
Currently we are developing a C# application which does some standard
validations (datatype/range/min lengh/max length etc.) on the form data.
We are planning to provide a VB scripting feature, so that the user can
specify his own validation for the form data.

The system requirement is , on clicking the script button, it will launch a form with a editbox wherein the user will enter the VB script.
a)The system should validate whether the entered VBScript code is valid or
not
b)Pass the parameters from c# to the VBScript parameters.
c)Execute the VBscript created by the user
d)Fetch the return value and assign it back to the C# variable.

Have you developed any such Scripting feature?
Can you provide some know-hows?

Thanx.

Regards,
R.Balaji

Nov 15 '05 #2
On Wed, 20 Aug 2003 16:36:14 +0530, R.Balaji wrote:
Hi,
Currently we are developing a C# application which does some standard
validations (datatype/range/min lengh/max length etc.) on the form data.
We are planning to provide a VB scripting feature, so that the user can
specify his own validation for the form data.


Have a look at this article:
http://msdn.microsoft.com/library/de...-us/dnclinic/h
tml/scripting06112001.asp

// Anders
--
NB! Links may wrap!!
Nov 15 '05 #3
Thank you

"Günter Prossliner" <g.**********@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP10.phx.gbl...
You can use the Microsoft Script Control via COM - Interop.

GP

"R.Balaji" <rb********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
Hi,
Currently we are developing a C# application which does some standard
validations (datatype/range/min lengh/max length etc.) on the form data.
We are planning to provide a VB scripting feature, so that the user can
specify his own validation for the form data.

The system requirement is , on clicking the script button, it will launch
a
form with a editbox wherein the user will enter the VB script.
a)The system should validate whether the entered VBScript code is valid

or not
b)Pass the parameters from c# to the VBScript parameters.
c)Execute the VBscript created by the user
d)Fetch the return value and assign it back to the C# variable.

Have you developed any such Scripting feature?
Can you provide some know-hows?

Thanx.

Regards,
R.Balaji


Nov 15 '05 #4
Take a look at this...it might be better suited instead of using the MS
Script Control via Interop.

http://www.divil.co.uk/net/articles/.../scripting.asp

"R.Balaji" <rb********@hotmail.com> wrote in message
news:O3**************@tk2msftngp13.phx.gbl...
Thank you

"Günter Prossliner" <g.**********@gmx.at> wrote in message
news:ey**************@TK2MSFTNGP10.phx.gbl...
You can use the Microsoft Script Control via COM - Interop.

GP

"R.Balaji" <rb********@hotmail.com> wrote in message
news:O9**************@TK2MSFTNGP09.phx.gbl...
Hi,
Currently we are developing a C# application which does some standard
validations (datatype/range/min lengh/max length etc.) on the form data. We are planning to provide a VB scripting feature, so that the user can specify his own validation for the form data.

The system requirement is , on clicking the script button, it will launch
a
form with a editbox wherein the user will enter the VB script.
a)The system should validate whether the entered VBScript code is
valid or not
b)Pass the parameters from c# to the VBScript parameters.
c)Execute the VBscript created by the user
d)Fetch the return value and assign it back to the C# variable.

Have you developed any such Scripting feature?
Can you provide some know-hows?

Thanx.

Regards,
R.Balaji



Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
0
by: William Tasso | last post by:
Hello wrt: Server IIS5 and IIS6 There is an application composed of PHP scripts on my server - currenly works fine. The site is written is ASP/vbScript. Is there any method I can use to...
4
by: Ian Sedwell | last post by:
Hi guys I am writing a Javascript routine to check for the presence and version of an Adobe Acrobat PDFViewer on the user's machine. No problem with any browser on the Mac, no problem with any...
3
by: jayanth.vishnuvardhan | last post by:
Hi All, Can any one help me on how to read & write the local machines registry values through scripting language. (vbscript/javscript)? I tried with Wscript.Shell Command & but with this we...
0
by: Scorpius | last post by:
In an old application on which I am working, in an ASP file there is a server side vbscript function that is creating object of a class created in CPP file -- Server.CreateObject(NAME1.CLASS123)...
5
by: Ben Schumacher | last post by:
Has VbScript become obsolete in Asp.Net 2.0? I can't seem to find any documentation on using VbScript with Asp.Net 2.0. Does this mean that the three years of knowledge I have using VbScript is...
4
by: client site dll in vbscript | last post by:
Hi i have one dll on client site,i want to use it in aspx page, on clinet site Is it possible or not .Please tell me the solution Please email me at indipren@hotmail.com Regarda Indi
6
by: ShieldsJared | last post by:
Hello all, I've been working on an application for a while now and have now come to a standstill. I have an application that I intend to have stored on a file server (developed in C#), which...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.