Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

what does this error mean???

Status
Not open for further replies.

mike314

Programmer
Jun 24, 2003
143
US
What does a Type-mismatch error mean?????????
 
this error mean that u pass an argument with type not expected
post ur line of code that has this error and we can solve this problem
 
the error states "Type-mismatch" and highlights the line of code that I have marked with asterisks. heres the code:


Sub fitFletch(x(), ss, jn, ifn)

ReDim g(jn), h(10000) As Double, w(10000), xm(jn)
For i = 1 To jn
xm(i) = x(i)
Next i
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
' stepsize = .000001
stepsize = 0.0000001
' stepsize = .0001
eps = 0.0000000000001
' eps = .0000001
mode = 1
maxfn = 1000
iprint = 1
estfn = func(x()) *********************
Call flet(f, x(), jn, g(), h(), dfn, xm(), stepsize, eps, mode, maxfn, 1 * iprint, w(), 1 * iexit, ifn)
ss = func(x())
Call printstats(x(), iter, jn, ss)

End Sub
 

this line: finc(x()) is what is giving type mismatch

estfn = func(x())
 
ok mike
estfn is it variable and which type
and is func(x()) a function , i want the header of it
 
estfn is a variable but its not declared anywhere is the module. (i'm modifying this code)
I thought func(x()) was a function provided by visual basic like Math functions such as: Tan() or abs()
 
To find out if func() is defined within your program, just right click on the word in design mode and select Definition. You will go to the code definition (if defined in your code), to the Object browser definition (if it's a standard function) or get an error if it's not a known function


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
mike314,
name "func()" suggests that someone was going create a FUNCtion but eventually run out of ideas how to name it...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top