10-29-2009, 05:54 PM
Hi,
Really i have spent more than 2 hours and finally i have get the conclusion
use this function
incase if u have duplicates in a variable "p" then proceed the same operation until u get the correct one....
Please let me know if i am going in wrong direction..
Really i have spent more than 2 hours and finally i have get the conclusion
use this function
Code:
Function fbtwds(p,p1,p2)
l=len(p)
l1=len(p1)
l2=len(p2)
if1=instr(1,p,p1)
m=right(p,l-(if1+l1-1))
m=trim(m)
ml=len(m)
if2=instr(1,m,p2)
m=left(m,if2-1)
msgbox m
End Function
call fbtwds("abdul kalam is scinetist and former president","kala","and")
Please let me know if i am going in wrong direction..