Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 191
  • Last Modified:

String Length

 I have been trying to organize this listbox so that it parses a string into 3 parts and then adds it to a listbox using the vbtab function (if theres a better way please tell me) anyways i have it all parsed and everything and working until i notice that if someone has a couple "!" or "W" it gets out of whack and the columns are off so what i want to do is find the strings width/length.
0
Rinale
Asked:
Rinale
1 Solution
 
MCSE-2002Commented:
'in visual basic, you would use len(variable)

'for example

dim str as string
str = "Hello Bob"
dim i as integer
i = len(str)
msgbox str(i)

'would give you a messagebox with something like "9"

'good luck.

';)

'in c++, i think it is str.length()
0
 
rrhunt28Commented:
Use a tape measure.

0
 
RinaleAuthor Commented:
A tape measure?
0
 
CleanupPingCommented:
Rinale:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
juliancrawfordCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: MCSE-2002 {http:#8228098}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Julian Crawford
EE Cleanup Volunteer
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now