Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 536959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:52:35+00:00 2026-05-13T09:52:35+00:00

Is it possible in VB.NET doing a = b = 5 ? (I know

  • 0

Is it possible in VB.NET doing a = b = 5? (I know that = is a comparison operator too)

I mean do not result (if b = 2 by e.g.)

a = false
b = 2

HOW to do it, however, in situations like bellow?


The inconvenient caused this question in my code: some objects a, b, .. z are passed by ref in a method, if I don’t initialize them compiler warns me that it shoudl be initialized(= Nothing by e.g.)

Dim a, b, c, d, z As GraphicsPath ' = Nothing is impossible, only each a part
DrawPaths(a, b, c, d, z)          ' DrawPaths sets a = new GraphicPath() etc. 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:52:35+00:00Added an answer on May 13, 2026 at 9:52 am

    a = b = 5
    means

    if b = 5 then a = true else a = false
    

    if you want to assign the value 5 to a and to b at the same time, you must add it on a separate line :

    b = 5
    a = b
    

    you can also write them on the same line but using the vb.net line separator :

    b = 5 : a = b
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 495k
  • Answers 495k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Thanks for the responses, your links were very helpful. Since… May 16, 2026 at 11:19 am
  • Editorial Team
    Editorial Team added an answer HTTP doesn't support pushing of data. You need to use… May 16, 2026 at 11:19 am
  • Editorial Team
    Editorial Team added an answer Try restarting eclipse also try selecting and applying different API… May 16, 2026 at 11:19 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

Possible Duplicates: [.NET] How do I disable a system device? Win32 API function to
I'm looking at the new version of ASP.NET MVC (see here for more details
I was going through an article on event bubbling in asp.net and came to
It is possible to easily use the GPS functionality in the iPhone since sdk
Possible Duplicate: What Advantages of Extension Methods have you found? All right, first of
I have some Visual C++ code that receives a pointer to a buffer with
I want to use code beside files for my views in my ASP.NET MVC
Hey everyone, I had a couple of questions relating to the .NET Entity Framework
So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is
I have a table in my database that represents datafields in a custom form.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.