VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Split a string in many of similar size

by Fernando Higa (1 Submission)
Category: String Manipulation
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

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.
Code Returns
Two or more strings with complete words with some maximum size.
Side Effects
None.

Rate Split a string in many of similar size

Upload

Download this snippet    Add to My Saved Code

Split a string in many of similar size Comments

No comments have been posted about Split a string in many of similar size. Why not be the first to post a comment about Split a string in many of similar size.

Post your comment

Subject:
Message:
0/1000 characters