How to make Object type comparision ??

  • Thread starter Thread starter serge calderara
  • Start date Start date
S

serge calderara

Dear all,

I have define a suer type as follow

Structure USER_PARAM_LIST
Dim LastUser As String
Dim SaveEntry As Boolean
End Structure

and a variable of that type
Dim m_structUserParamList As USER_PARAM_LIST

How can I compare an object type to knwo if it is a
USER_PARAM_LIST type?

someting like this

if ParamList.GetType Is m_structUserParamList.GetType Then

thnaks for your help
regards
 
How can I compare an object type to knwo if it is a
USER_PARAM_LIST type?

If TypeOf ParamList Is USER_PARAM_LIST Then

or

If ParamList.GetType() Is GetType(USER_PARAM_LIST) Then



Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top