Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Imaging Seminar Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Help with Concatenation
Darren McMartin 
    
2 years ago
The code from the video is:
S = ImagesFolder
S = S & EmployeePicture

Being a Math teacher, I'm a little confused with the above code. I know it works.

The second line says S = itself plus employeepicture. Looking at it mathematically, which is probably wrong, it is like saying 5 = 5 + 1.

I can understand if the above code was written as:
F = ImagesFolder
S = F & EmployeePicture

I'm just interested why the code above works.
Richard Rost  @Reply  
          
2 years ago
It's concatenation not math. It's adding strings together.

Your example of:

5 = 5 + 1

is using basic arithmetic, and is incorrect. Instead let's use algebra as an example:

X = 1
X = X + 4


And now of course your answer would be five. It's the same thing with strings:

N = "Rick"
N = N & " Rost"


And now of course the string would be equal to "Rick Rost".
Richard Rost  @Reply  
          
2 years ago
Essentially you can keep adding to a string much like you can change the value of a variable with subsequent calls.
Kevin Yip  @Reply  
     
2 years ago
S is a variable, meaning its value can be changed, unlike a constant like 5.  The equal sign "=" is an operator symbol here, not an equation indicator.  The "operation" here is assigning a value.  S=S & A means S is being assigned the value of S & A.  5 = 5 is a mathematically correct equation, but it is syntactically incorrect in coding, because you can't assign any value to a constant, even the same value as itself.
Darren McMartin OP  @Reply  
    
2 years ago
Thanks Richard and Kevin. When I used to write computer code, decades ago, I remember using count = count + 1 in a loop.
Richard Rost  @Reply  
          
2 years ago
That's actually one of the things I like better about a language like C. The symbol to set a value equal to something is different from the symbol to check for equivalences.

X = 5

Would set X to a value of 5, but

X == 5

Tests to see if X is equal to 5.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Imaging Seminar Lessons.
 

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: 8/17/2026 7:04:23 AM. PLT: 0s