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

Passing a value

Hopefully, this will not be as bad as passing a kidney stone. :-)

Anyone know how to pass a value from a VB6 exacutable to a VBScript file (*.vbs)?

David
Jul 17 '05 #1
4 5141
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
Hopefully, this will not be as bad as passing a kidney stone. :-)

Anyone know how to pass a value from a VB6 exacutable to a VBScript file (*.vbs)?


if you pass the argument on the command line the WScript.Arguments
collection can be used in the script to get the info
Jul 17 '05 #2
bu*******@earthlink.net (Bob Butler) wrote in message news:<fa************************@posting.google.co m>...
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
Hopefully, this will not be as bad as passing a kidney stone. :-)

Anyone know how to pass a value from a VB6 exacutable to a VBScript file (*.vbs)?


if you pass the argument on the command line the WScript.Arguments
collection can be used in the script to get the info


How do I declare that in my script file? I am just using Notepad.
Jul 17 '05 #3
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
bu*******@earthlink.net (Bob Butler) wrote in message news:<fa************************@posting.google.co m>...
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
Hopefully, this will not be as bad as passing a kidney stone. :-)

Anyone know how to pass a value from a VB6 exacutable to a VBScript file (*.vbs)?


if you pass the argument on the command line the WScript.Arguments
collection can be used in the script to get the info


How do I declare that in my script file? I am just using Notepad.


dim oArgs, sArgs
Set oArgs = WScript.Arguments
For x = 0 To oArgs.Count - 1
sArgs = sArgs & " " & oArgs(x)
Next
Set oArgs = Nothing
msgbox sArgs
Jul 17 '05 #4
bu*******@earthlink.net (Bob Butler) wrote in message news:<fa************************@posting.google.co m>...
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
bu*******@earthlink.net (Bob Butler) wrote in message news:<fa************************@posting.google.co m>...
dh*******@chestnut.org (David) wrote in message news:<83**************************@posting.google. com>...
> Hopefully, this will not be as bad as passing a kidney stone. :-)
>
> Anyone know how to pass a value from a VB6 exacutable to a VBScript file (*.vbs)?

if you pass the argument on the command line the WScript.Arguments
collection can be used in the script to get the info


How do I declare that in my script file? I am just using Notepad.


dim oArgs, sArgs
Set oArgs = WScript.Arguments
For x = 0 To oArgs.Count - 1
sArgs = sArgs & " " & oArgs(x)
Next
Set oArgs = Nothing
msgbox sArgs

Thanks, that did the trick!

David
Jul 17 '05 #5

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

Similar topics

8
by: Alex Vinokur | last post by:
Various forms of argument passing ================================= C/C++ Performance Tests ======================= Using C/C++ Program Perfometer...
15
by: Dave | last post by:
I'm currently working on a small project (admitedly for my CS class) that compares the time difference between passing by value and passing by reference. I'm passing an array of 50000 int's. ...
58
by: jr | last post by:
Sorry for this very dumb question, but I've clearly got a long way to go! Can someone please help me pass an array into a function. Here's a starting point. void TheMainFunc() { // Body of...
7
by: Harolds | last post by:
The code below worked in VS 2003 & dotnet framework 1.1 but now in VS 2005 the pmID is evaluated to "" instead of what the value is set to: .... xmlItems.Document = pmXML // Add the pmID...
9
by: Just Me | last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in. Is the "ref" correct or since only a pointer is being passed should it be by value? Suppose I was passing data rather then...
6
by: MSDNAndi | last post by:
Hi, I get the following warning: "Possibly incorrect assignment to local 'oLockObject' which is the argument to a using or lock statement. The Dispose call or unlocking will happen on the...
17
by: Christopher Benson-Manica | last post by:
Does the following program exhibit undefined behavior? Specifically, does passing a struct by value cause undefined behavior if that struct has as a member a pointer that has been passed to...
12
by: Andrew Bullock | last post by:
Hi, I have two classes, A and B, B takes an A as an argument in its constructor: A a1 = new A(); B b = new B(a1);
12
by: Mike | last post by:
Consider the following code: """ struct person { char *name; int age; }; typedef struct person* StructType;
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.