Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help on this function
#1
Solved: 10 Years, 9 Months ago
I have been using following function to find a value between two words. It returns correct value when I have no duplicate words but in the opposite case this function returns me incorrect value.
Code:
Function ParseScreenVal(varString,varCurr,varNext)
i = varString
i = CStr(i)
varCount = instr( 1,i,varCurr,vbTextCompare)
varCount2 = instr( 1,i,varNext,vbTextCompare)
ParseScreenVal = Mid(i, varCount + len(varCurr),varCount2-varCount - len(varCurr))

End Function


Please see the attachment for more details. Any help would be really appreciated

Thanks in advance


Attached Files
.doc   Issue with Pane.doc (Size: 57.5 KB / Downloads: 86)
Reply


Messages In This Thread
Need help on this function - by faqtest2009 - 10-29-2009, 07:26 AM
RE: Need help on this function - by venkatbatchu - 10-29-2009, 05:54 PM
RE: Need help on this function - by faqtest2009 - 10-29-2009, 11:37 PM
RE: Need help on this function - by Saket - 10-30-2009, 10:14 AM
RE: Need help on this function - by faqtest2009 - 10-30-2009, 11:18 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a Function in Function Library when function is defined in an Action jitenderkkr 0 2,771 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  How can I fetch server time using function Now or any other function? blanchedsouza 2 4,838 11-07-2009, 08:34 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)