NEWBIE: Another question to manipulate String 
Author Message
 NEWBIE: Another question to manipulate String

How can i get the third character of a string ?

"abcd" return c

ps: In java or others would be like (Object String).charAt(3)

thanks.. again



Thu, 24 Oct 2002 03:00:00 GMT  
 NEWBIE: Another question to manipulate String
str = "abcd"
char3 = Mid(str,3,1)

VBScript Tutorial
http://msdn.microsoft.com/scripting/vbscript/doc/vbstutor.htm
VBScript Documentation
http://msdn.microsoft.com/scripting/vbscript/techinfo/vbsdocs.htm
http://msdn.microsoft.com/scripting/vbscript/download/vbsdoc.exe

--
Michael Harris
MVP Scripting

How can i get the third character of a string ?

"abcd" return c

ps: In java or others would be like (Object String).charAt(3)

thanks.. again



Thu, 24 Oct 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Manipulate string question?

2. Newbie Question: Dim A() as String /Dim A as String()

3. ANOTHER NEWBIE QUESTION: String Concatenation

4. Newbie question - strings

5. Newbie question : string manipulation with VBscript.

6. Newbie - Question with ASP Syntax using Request.Form in string

7. Newbie question about string comparison

8. Newbie Question: evaluating strings for code other than data

9. Newbie String Question

10. Another Newbie String Question

11. Newbie Question: evaluating strings for code other than data

12. XML Newbie question, getting a value from an XML string

 

 
Powered by phpBB® Forum Software