Results 1 to 7 of 7

Thread: RESOLVED - VB implicit variable typing

Threaded View

  1. #1

    Thread Starter
    PowerPoster BruceG's Avatar
    Join Date
    May 2000
    Location
    New Jersey (USA)
    Posts
    2,657

    Resolved RESOLVED - VB implicit variable typing

    Hello,
    I have 2 VB projects open in VS 2019 on the same computer, one is my main project, the other is a proof-of-concept program written by a colleague. I am copying over some code from the proof-of-concept project to the main one.
    In my colleague's code, there will be statements like:
    "Dim request = New MailKit.FetchRequest(MailKit.MessageSummaryItems....etc."
    and if I hover "request", VS indicates that the type is "MailKit.FetchRequest".
    When I copy this over to the main project, VS doesn't "know" what the type is, and reports that it is "Object".

    How do I make the main project recognize the type?
    (As it is, I have to do "Dim request As MailKit.FetchRequest = New MailKit.FetchRequest(MailKit.MessageSummaryItems....etc.")
    Last edited by BruceG; May 30th, 2023 at 09:10 PM. Reason: Resolved
    "It's cold gin time again ..."

    Check out my website here.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width