Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help on this function
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
hi faqtest2009,
I have modified your code, check out if this works
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))
sResult = Mid(i, varCount + len(varCurr),varCount2-varCount - len(varCurr))
Do
    varCount = instr( 1,sResult,varCurr,vbTextCompare)
    If varCount > 0Then
        sResult  = Mid(sResult, varCount + len(varCurr),len(sResult))
    End If
Loop while  varCount > 0
ParseScreenVal = sResult
End Function
I have verified with the data in your attachment.
let me know if you find any issue with other data.

@Everyone - Please use proper tags to wrap your code and make your post readable.

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,967 11-27-2014, 12:53 PM
Last Post: jitenderkkr
  How can I fetch server time using function Now or any other function? blanchedsouza 2 5,104 11-07-2009, 08:34 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 3 Guest(s)