|
-
January 9th, 2008, 12:32 PM
#1
Count # repeats of string within string
Anyone know of a nifty VB command that will tell you the number or times a string appears within another string?
For example, let's say we have a string that will be placed in a txtBox where .multiline=True. It'd be nice to know how many CrLfs are in the string so you can determine the # of lines to be displayed.
It's easy enough to write code to do this, but maybe VB does it for me. Thanks...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|