CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Lookingt for some suggestions

    That's right. But if the ArcNimTst() would still be a sub without parameter he would have got an error message in that If statement. I suppose it is now a function with a parameter.

  2. #17
    Join Date
    Sep 2001
    Location
    South Africa
    Posts
    186

    Re: Lookingt for some suggestions

    I was also wondering about that, but was working on the code supplied.

  3. #18
    Join Date
    Jul 2006
    Location
    Germany
    Posts
    3,725

    Re: Lookingt for some suggestions

    Not for me.
    If i have
    Code:
    Private Sub ArcNimTst()
    ...
    End Sub
    Then the line If AcrNimTst(password) Then will first produce a
    'wrong number of arguments' error.When you take away the argument,
    the line If AcrNimTst() Then will produce an 'function or variable expected' error.

Page 2 of 2 FirstFirst 12

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

Featured