473,385 Members | 1,925 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,385 software developers and data experts.

VB script to VB.Net back to VB script

Rob
I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program to
the VB script program ?

Thanks !

May 3 '06 #1
4 1536

"Rob" <rw*****@comcast.net> wrote in message
news:Es******************************@comcast.com. ..
I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program
to
the VB script program ?

Thanks !


You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from there
call methods on it. VBScript supports ByRef as well, so you can pass
parameters ByRef. You can also retrieve the return value if need-be.

Mythran

May 3 '06 #2
Rob
Thanks Mythran,

Do you know where some sample code illustrating this is ? Maybe a website
or 2 ?

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:el**************@TK2MSFTNGP04.phx.gbl...

"Rob" <rw*****@comcast.net> wrote in message
news:Es******************************@comcast.com. ..
I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program
to
the VB script program ?

Thanks !


You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from
there call methods on it. VBScript supports ByRef as well, so you can
pass parameters ByRef. You can also retrieve the return value if need-be.

Mythran

May 4 '06 #3

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:el**************@TK2MSFTNGP04.phx.gbl...

"Rob" <rw*****@comcast.net> wrote in message
news:Es******************************@comcast.com. ..
I am working with an ERP package that has the capability to pass variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass it
variables from the VB script AND return variables from the vb.net program to
the VB script program ?

Thanks !


You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from there
call methods on it. VBScript supports ByRef as well, so you can pass
parameters ByRef. You can also retrieve the return value if need-be.


That's the most appropriate way, but when all else fails, just create a text
file with the values you want to pass and parse it in the called program.
May 4 '06 #4

"Rob" <rw*****@comcast.net> wrote in message
news:Od******************************@comcast.com. ..
Thanks Mythran,

Do you know where some sample code illustrating this is ? Maybe a
website or 2 ?

"Mythran" <ki********@hotmail.comREMOVETRAIL> wrote in message
news:el**************@TK2MSFTNGP04.phx.gbl...

"Rob" <rw*****@comcast.net> wrote in message
news:Es******************************@comcast.com. ..
I am working with an ERP package that has the capability to pass
variables
to and from VB script....

Is there a way from within VB script to call a vb.net program AND pass
it
variables from the VB script AND return variables from the vb.net
program to
the VB script program ?

Thanks !


You can create the VB.Net library as a COM component. Then you can use
VBScript's CreateObject function to create the class you need and from
there call methods on it. VBScript supports ByRef as well, so you can
pass parameters ByRef. You can also retrieve the return value if
need-be.

Mythran



Hope this is what you need :)

http://www.codeproject.com/dotnet/nettocom.asp

HTH,
Mythran

May 4 '06 #5

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

Similar topics

8
by: jasonbrown1999 | last post by:
Someone told me the following script could be used to run harmful commands on the server, by passing commands into the script. What the script does is encode an affiliate URL, create two frames,...
11
by: Wentink | last post by:
Does anybody have a simple script that let's me popup a picture from a thumbnail? The ones i found are all very very complicated and messy in the source... Thanks, Tintin
4
by: Russ | last post by:
I have a form page with a submit button. When the submit is successfull (good return from web service), I insert a script to put up a message box saying "Form submitted". That works fine, but...
3
by: MW de Jager | last post by:
I am running a script from C#, but I need a returnvalue to be passed back to my code. I am currently using RegisterStartupScript, but this does not allow me to receive anything back from the...
11
by: Dave Schwimmer | last post by:
I am relatively new to PHP. One of the things that seems glaring obvious to me (coming from a C/C++ background) is how 'open' everything seems - (AFAIK). For instance, URLs typically have the name...
0
by: oliver | last post by:
QUESTION: How to access an object embedded in a UserControl through Javascript file? Another way to ask this question: How to execute script from a UserControl, accessing other objects in that...
2
by: Antonio | last post by:
Hi, I would like to have my TreeNode to call window.close(); without posting back, how can I do that? At the same time, I prefer to have a SelectAction property that allows my TreeNode to appear...
4
by: thanos | last post by:
Hello, I'm relatively new to PHP so I found this free contact us script on the net that i was going to use for my Contact Us php page. Its works pretty good except for error handling. I was...
3
by: jaeden99 | last post by:
I was wandering if nyone has a script to move files older than x days old? i've seen several to delete, but I don't want to delete. I would like to create a backup of the files first verify with...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.