Computer Learning Zone CLZ Access Excel Word Windows

A good education is a foundation for a better future.

-Elizabeth Warren
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visual Basic Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Concatenation
Kevin Robertson 
           
2 years ago
There are several ways to concatenate text in VB.NET.
The screenshots below illustrates eight of them that yield the same results.

Are there more? Please post you own concatenation solution.
Kevin Robertson OP  @Reply  
           
2 years ago

Kevin Robertson OP  @Reply  
           
2 years ago

Sami Shamma  @Reply  
             
2 years ago
Can't wait until Richard start .NET serious lessons.
Kevin Robertson OP  @Reply  
           
2 years ago
Yeah. I want to learn more too (VB.Net, C#, C++) 👍
Shelton Burch  @Reply  
     
2 years ago
Wow! I appreciate that so much'..how kind of you to take the time to send that'!
Adam Schwanz  @Reply  
           
2 years ago
Does this count? Even though vba dictionary is garbage compared to python/C#

    Dim dict As Object
    Set dict = CreateObject("Scripting.Dictionary")
    
    dict.Add Text1, Text1.Value
    dict.Add Text2, Text2.Value
    dict.Add Text3, Text3.Value
    dict.Add Text4, Text4.Value
    dict.Add Text5, Text5.Value
    
    Dim S As String
    For Each Key In dict.Keys
        S = S & " " & dict(Key)
    Next Key
    
    MsgBox S
Sami Shamma  @Reply  
             
2 years ago
I do not know anything about Scripting.Dictionary

Richard, can we have a Tech-Help video on this?
Kevin Robertson OP  @Reply  
           
2 years ago
That's great Adam
I've never used it in VBA. Learned something new today.

Key isn't defined though which works if Option Explicit is turned off.

With Option Explicit: Dim Key As Variant
Alex Hedley  @Reply  
           
2 years ago
You'll probably want to swap to VBA-Dictionary since VBScript is on the way out.
Alex Hedley  @Reply  
           
2 years ago
Are mine not serious enough Sami :p ?
Sami Shamma  @Reply  
             
2 years ago
Guys, don't forget that I watched my very first VBA video less than 2 years ago. I knew nothing about VBA before that date. I learned programming back at university in 1978 (Fortran, COBOL, Pascal, RPG-I, RPG-II, B, C, Assembly etc.). I programmed every year since. But I probably wrote more code in the last 12 months than I ever did in any year before.

As I said before, I am older than you with the least experience amongst you.
Adam Schwanz  @Reply  
           
2 years ago
It's OK Sami, I didn't know about dictionaries either until probably 6 months ago when I was learning python.

The VBA dictionary is kind of lackluster compared to python as far as versatility, and I think the times you would want to use a dictionary over just a dlookup in a table would be pretty rare (I've never used one personally in VBA), but the concept of it is a pretty cool thing to know about anyways :).
Richard Rost  @Reply  
          
2 years ago
I've got a ton of other stuff on my TO DO list before I go into .NET programming. Besides... Alex's got this for now. I'm positive his videos will get much better with practice. Look at my early videos. They were nothing great.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visual Basic Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 4/30/2026 10:02:51 AM. PLT: 0s