Error in Call statement
- From: "Marv" <marvwade@xxxxxxxxxxxxxxx>
- Date: Sat, 29 Mar 2008 15:56:21 -0400
I have the following UDT defined in a base module:
Type RecordCC
CatScore(15) As Single
End Type
Type RecordC
Valid As Integer
Year As String * 4
ModelID As String * 5
ContestantName As String * 30
ModelName As String * 30
JudgesScore(3) As RecordCC
JudgeTotalScore(3) As Single
Expansion As String * 20
FilePos As Integer
End Type
Public gModelRec As RecordC
Public gDummyModelRec As RecordC
Public gModelArray() As RecordC
Also in the Base Module I have this sub:
Public Sub AdjustPrtLine(ModelRec)
' do something
End Sub
In a form I have the following call statement:
Call WMAAShow_General1.AdjustPrtLine(gModelArray(N1))
However, when I try to run it I get the message:
" Only user defined types defined in public pbject modules can be coerced
to or from a variant or passed to a late bound function."
I am at a loss to understand what this means. I think I have the UDT defined
in a public base module. What obvious thing am I missing?
Marv
.
- Follow-Ups:
- Re: Error in Call statement
- From: Steve Gerrard
- Re: Error in Call statement
- From: Larry Serflaten
- Re: Error in Call statement
- From: senn
- Re: Error in Call statement
- Prev by Date: lactating tities
- Next by Date: Re: Error in Call statement
- Previous by thread: lactating tities
- Next by thread: Re: Error in Call statement
- Index(es):
Relevant Pages
|