Computer Learning Zone CLZ Access Excel Word Windows

Study without desire spoils the memory, and it retains nothing that it takes in.

-Leonardo da Vinci
 
Home   Courses   Seminars   Templates   Help   TechHelp   Forums   Contact   Join   Order   Logon  
 
Home > Forums > VB
 
Visual Basic Forum

Welcome to the Visual Basic Forum. This forum is for everyone to read but only students (paid customers) can post here. If you'd like to become a student, you can watch VB Beginner Level 1 for free, and then purchase Level 2 for just $1.00 here. After you create a logon, you will have full access to the Forums.

You can post questions about any version of Visual Basic, Visual Studio, VBA, VBScript, or whatever you like. Right now, my only course on VB covers the old Visual Basic 6, and of course I cover VBA for Microsoft Access in the Developer and 300-level classes. I'm going to be releasing courses for Visual Basic in Visual Studio 2019 soon, including the free Community edition.

Subscribe to this forum and receive an email update whenever new posts are added. You will also be notified by email if any conversations you are involved in receieve new comments. Yes, even non-students can subscribe to update notifications.

Click Here to Post a comment and start a new discussion!

 

Fixed Length Strings Upload Images   Link  
Kevin Robertson 
4 months ago
I am building a Diner POS (practice project) and needed a fixed length string for the customer receipt (since product names are of variable lengths). Thought I'd share the code I found with you guys :)

    Public Function FixedLengthString(ByVal value As String,
                                      ByVal totalLength As Integer,
                                      ByVal padding As Char) As String

        Dim length = value.Length

        If (length > totalLength) Then Return value.Substring(0, totalLength)
        Return value.PadRight(totalLength, padding)

    End Function

Works great!
Richard Rost
4 months ago
Awesome. Thanks for sharing!
Add a Reply

Show All Comments

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
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
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
Email Richard
Mailing Address
Phone Number
Fax Number
Course Survey
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn
Keywords: vb forum visual basic  PermaLink