VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



WordWrapper

by Robert J. Fucci (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (4 Votes)

This function takes a long string of text, splits it up into lines for printing or displaying, then returns the new string. Like the newspaper, it doesnt cut off words, it carries them over to the next line. It includes a function to check for the longest word so you dont accidently ask for a column width smaller than your largest word.

Inputs
It accepts a long as a parameter that represents the max number of characters per line.
Code Returns
Returns the new string.
API Declarations
None.

Rate WordWrapper

Upload

Download this snippet    Add to My Saved Code

WordWrapper Comments

No comments have been posted about WordWrapper. Why not be the first to post a comment about WordWrapper.

Post your comment

Subject:
Message:
0/1000 characters