Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how can I store a string with variable in it, in another variable?
#2
Solved: 12 Years, 11 Months ago Wink 
Hi Reema,

The error is occurring as the number of double quotes is odd in the given statement.

Code:
str = "<A href="manage_contact_edit.htm?contactId=newstr>Edit</A>"


You may try this:

Code:
str = "<A href='manage_contact_edit.htm?contactId=" + newstr + "'>Edit</A>"

Please let me know if still any problem.

Smile
Reply


Messages In This Thread
RE: how can I store a string with variable in it, in another variable? - by A.Saini - 11-11-2010, 06:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Inserting variable values into Descriptive Programming Functions eske99 2 4,090 12-18-2015, 01:47 PM
Last Post: vinod123
  Can you please help me in QTP DP to pass the variable name anshika.agarwal 1 3,152 09-04-2014, 06:43 PM
Last Post: anshika.agarwal
  Assigning object properties to a variable using dp nmakkena 1 4,402 04-18-2014, 06:46 AM
Last Post: kgovadav
  variable is undefined: wscript shipu 1 4,966 01-09-2014, 07:23 AM
Last Post: basanth27
  How to retrieve ArrayList saved in Environment Variable Gautam26 8 5,943 11-07-2013, 08:26 PM
Last Post: ssvali

Forum Jump:


Users browsing this thread: 1 Guest(s)