944,173 Members | Top Members by Rank

Ad:
Jul 20th, 2007
0

String in VB 6.0

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pvozarkar is offline Offline
5 posts
since Apr 2007
Jul 20th, 2007
0

Re: String in VB 6.0

Hi,

use this code:

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

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Jul 20th, 2007
0

Re: String in VB 6.0

Try using the function MID()
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: my school assignment
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: VB 6.0 - Accepting value (email address)from Inputbox





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC