|
-
Jun 23rd, 2001, 05:39 PM
#1
vb or vbs or something else?
As a complete newbie to VB or VBS I have probably a very easy question.
I want to write a batch ( no forms, no user input) program that adds entries to an Outlook Contacts or Calendar folder.
This program will be called from a C-program in an ERP application.
So I basically want to be able to call a vb program with parameters (the contact info I want to add).
IS this possible with VB or VBS and if so, which one would be the easiest ?
-
Jun 23rd, 2001, 06:49 PM
#2
Hyperactive Member
it would be easier in something that you DIDNT have a form to start off with
-
Jun 23rd, 2001, 09:04 PM
#3
Hyperactive Member
If VB or VBS is your only choices, you will have to use VB. I don't think that you can pass arguments into a vbs script. In vb, you can make a formless program, just by removing the form, and adding a module to your project. Then in the module, you need a function called sub main.
In vb, you would use the Command keyword like this:
VB Code:
Sub Main()
msgbox Command$
End sub
This will show the arguments passed to the program in a messagebox.
Hope this helps.
Last edited by reeset; Jun 23rd, 2001 at 09:07 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|