HighTechTalks DotNet Forums  

Passing Parameters to VB.net Application From VBScript in VSA engine- reg

Dotnet Scripting microsoft.public.dotnet.scripting


Discuss Passing Parameters to VB.net Application From VBScript in VSA engine- reg in the Dotnet Scripting forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Thirumalai
 
Posts: n/a

Default Passing Parameters to VB.net Application From VBScript in VSA engine- reg - 07-11-2006 , 11:03 AM






Dear friends,

I have written a sample VB.Net application using VSA Engine Scripting .

I could pass parameters from Vbscript to VB.Net application. Now all I need
is to pass parameter from vb.net application to
VBScript or JScript.

Here is my sample script code:
Private Sub dlgScript_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

txtScript.Text = "Imports System.Windows.Forms" & vbCrLf & _

"Imports System.Drawing" & vbCrLf & _

"Imports System.Math" & vbCrLf & _

vbCrLf & _

"Module Script" & vbCrLf & _

" Public Sub Main()" & vbCrLf & _

" Dim InputA, InputB, Result As Integer " & vbCrLf & _

" InputA = 10 " & vbCrLf & _

" TheForm.MakeSegment(InputA)" & vbCrLf & _

" End Sub" & vbCrLf & _

"End Module"

txtScript.Select(0, 0)

End Sub


Regards,
Thirumalai.









Reply With Quote
  #2  
Old   
Peter Torr \(MS\)
 
Posts: n/a

Default Re: Passing Parameters to VB.net Application From VBScript in VSA engine- reg - 07-12-2006 , 11:01 AM






"Thirumalai" <thirumalai (AT) cspl (DOT) com> wrote

Quote:
I could pass parameters from Vbscript to VB.Net application. Now all I
need is to pass parameter from vb.net application to
VBScript or JScript.
Your script code needs to include a Class declaration. Then from your host
you create an instance of that class and call one of its methods with the
parameters you need.

Peter

--
Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.