|
-
Aug 2nd, 2004, 11:35 AM
#1
Thread Starter
Hyperactive Member
ByRef argument type mismatch when passing variable [VB6]
Given the following code: If MatchF("Location", rArray(6)) Then Pass = False
Where: Public Function MatchF(strField As String, strValue As String)
This generates the following error “Compile Error: ByRef argument type mismatch”
Any clues as to why?
I tried the following code: If MatchF("Location", rArray(6).Value) Then Pass = False
This generates the following error: “Run-Time Error 424: Object Required”
All I want to do is pass that part of the Array into the MatchF function to determine if it is a match. The contents of Public Function MatchF should not make any difference nor should the contents @ rArray(6) itself.
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
|