Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Please help, I can't figure out why I can't call the following function (being called from form1.vb):

 

says "is a type and can not be used as an expression"

 

CallByName(globalFunction, "YesOrNo", CallType.Method)

 

 

 

I have the CLASS in my mainmodule.vb, defined outside the "MODULE MAIN" definition

 

Public Class globalFunction

Private Function YesOrNo()

If MsgBox("pQuestion", MsgBoxStyle.YesNo, "Script Question") = MsgBoxResult.Yes Then

' Return pAnswer1

Else

' Return pAnswer2

End If

End Function

End Class

www.DRSTEIN99.com www.RAIDGEAR.net www.THERE.com -> Tell them DrStein99 sent ya!
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...