String in VB 6.0

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 5
Reputation: pvozarkar is an unknown quantity at this point 
Solved Threads: 0
pvozarkar pvozarkar is offline Offline
Newbie Poster

String in VB 6.0

 
0
  #1
Jul 20th, 2007
Hi everybody,
I am lookin for a function in vb 6.0 for finding position of a charecter in the string.I know the logic but is there any inbuilt function available ?

Please help

Thanking You
Piyush
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: String in VB 6.0

 
0
  #2
Jul 20th, 2007
Hi,

use this code:

Dim iPos As Integer
iPos = Instr("ABCDEF","B")
If iPos>0 Then
MsgBox "Found at " & ipos
Else
MsgBox "Not Found"
End If

Regards
Veena
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,132
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: String in VB 6.0

 
0
  #3
Jul 20th, 2007
Try using the function MID()
Share your Knowledge.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC