Shouldn't the internal quotes be escaped? For example: string = Main.NetPriceMapping(\"*price.*\")Lookup.SupplementLookup(\"*dia-supp.*\")Lookup.ProductFulfillmentInput (\"*fulfillment.*\")
On Tue, Jun 14, 2011 at 12:21 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
