Results 1 to 3 of 3

Thread: vb or vbs or something else?

  1. #1
    ego
    Guest

    Question 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 ?

  2. #2
    Hyperactive Member
    Join Date
    May 2001
    Location
    England
    Posts
    312
    it would be easier in something that you DIDNT have a form to start off with

  3. #3
    Hyperactive Member
    Join Date
    May 2000
    Location
    Or
    Posts
    316
    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:
    1. Sub Main()
    2.   msgbox Command$
    3. 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
  •  



Click Here to Expand Forum to Full Width