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

Recommended Answers

All 2 Replies

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

Try using the function MID()

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.