Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reading in a certain number of characters

Status
Not open for further replies.

jennyek2000

Programmer
Sep 2, 2003
43
GB
How can I read in a certain number of characters (i.e. not all) from a string in a control (e.g.. a list box item) into a variable??

E.g.

"Jenny Keenan"

Just read "Jenny" into the variable.

Thanks,
Jenny
 
Hi Jenny
you can use Mid,Left,Right functions to read
or Substring function whatever is ur requiremnt
Regards
Nouman

Nouman Zaheer
Software Engineer
MSR
 
to get like the first 10 characters:
dim strMyvar as string=MyCtrl.text.Substring(1,10)

The gap between theory and practice is not as wide in theory as it is in practice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top