VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

WordWrapper

Robert J. Fucci  (1 Submission)   String Manipulation   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

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.

Returns
Returns the new string.

API Declarations
None.

Rate WordWrapper (5(5 Vote))
WordWrapper.bas

WordWrapper Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters