On 6/14/11, Byzoor.,IAS <[email protected]> wrote: > Hi, > please find the solution: > > 'strstring = > Main.NetPriceMapping("*price.*")Lookup.SupplementLookup("*dia-supp.*")Lookup.ProductFulfillmentInput > ("*fulfillment.*") > > Dim strMyVariable > strMyVariable = "Main.NetPriceMapping(Chr(13)*price.*Chr(13)) > Lookup.SupplementLookup > (Chr(13)*dia-supp.*chr(13))Lookup.ProductFulfillmentInput > (Chr(13)*fulfillment.*Chr(13))" > 'strSplitMyVariable=split (strMyVariable,"(",-1,1) > strPrice=mid (strMyVariable,30,5) > strdiasupp=mid(strMyVariable,79,8) > strfullfillment=mid(strMyVariable,137,12) > strMyOutput=strPrice&vbcrlf &strdiasupp &vbcrlf &strfullfillment > 'strMyVariable = Replace(strMyVariable, Chr(34), Chr(32)) > > MsgBox "Output :: " &vbcrlf & Trim(strMyOutput) > > > > > > Happy Tester, > Byzoor, > > > > > On Tue, Jun 14, 2011 at 9:51 PM, Shalabh Dixit > <[email protected]>wrote: > >> Hi, >> >> Can anybody please help me in removing the double quotes from the >> following string: >> >> string = Main.NetPriceMapping("*price.*")Lookup.SupplementLookup("*dia- >> supp.*")Lookup.ProductFulfillmentInput ("*fulfillment.*") >> >> This is one complete string and I need to fetch the following from the >> above string: >> Output Required: >> -------------------- >> price >> dia-supp >> fulfillment >> -------------------- >> I'm using the following code but not able to build the string >> successfully as it is showing the syntax errors due to so many double >> quotes: >> >> Dim strMyVariable >> strMyVariable = "Main.NetPriceMapping >> ("*price.*")Lookup.SupplementLookup ("*dia- >> supp.*")Lookup.ProductFulfillmentInput ("*fulfillment.*")" >> >> strMyVariable = Replace(strMyVariable, Chr(34), Chr(32)) >> >> MsgBox "Output :: " & Trim(strMyVariable) >> >> -------------------- >> Thanks >> SHALABH DIXIT >> >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en
-- Sent from my mobile device -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
