Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996

Manipulating Strings

Question:
I don't know how to access individual characters in a string. ie. accessing single elements in an array of characters. Each time I try I keep getting Type mismatch.

Answer:
You have to use the Left$, Right$, and/or the Mid$ functions. Those let you access individual characters in a string. Look in the help for more information about those functions. Basically, you give the function a string, and the number and position of characters to retrieve.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date