VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Split a string in many of similar size

Fernando Higa  (1 Submission)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

Splits a string in two or more parts so they can fit in a given space, but only take into account complete words.

Assumes
This example uses the InStr function in order to work backwards and then the main routine will split the string. I have used these routines for the total amount in letters for receipts. The zipped file includes the code with an example.

Returns
Two or more strings with complete words with some maximum size.

Side Effects
None.

Rate Split a string in many of similar size (2(2 Vote))
Split a string in many of similar size.bas

Split a string in many of similar size Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters