Results 1 to 6 of 6

Thread: Command line arguments

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Dallas,Tx,USA
    Posts
    30

    Post

    i am using the command fucntion to get the command line arguments from the properties..

    But when i call the command funtion i get an error message that says

    Cant find project or library

    Is there anything i need to set.

    Thanks,
    Mark

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Can you post the code you're using, so we can take a look?

    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Dallas,Tx,USA
    Posts
    30

    Post

    Private Sub Form_Load()
    Dim strCommandLine As StringstrCommandLine = Command()
    if strCommandLine = ....... 'do something
    end if
    end sub


    i just plugged this code in.....

    ******************************************************************************************


    In my project properties,Make tab, Command line agruments = hello there

    So i know i passed the arguments right now it is a problem trying to use those agruments.

    Command () gives me an error= cant find object or library

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    Command isn't a function, so just remove the "()".

    ------------------
    Marty
    HASTE CUISINE
    Fast French food.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Feb 2000
    Location
    Dallas,Tx,USA
    Posts
    30

    Post

    still doesnt work


    same error

  6. #6
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Try:
    Code:
    Private Sub Form_Load()
        Select Case LCase(Command)
        Case "/n"
            'Do Something
        Case Else
            'Do Something Else
        End Select
    End Sub
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]


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